diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-09-12 15:16:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-15 20:49:19 +0200 |
commit | 23426a25e55a417dc104df08781b6eff95e65f3f (patch) | |
tree | 69ed995df9f624e54000def38dd9f44a6da8a879 /.cocciconfig | |
parent | d518d2ed8640c1cbbbb6f63939e3e65471817367 (diff) | |
download | linux-23426a25e55a417dc104df08781b6eff95e65f3f.tar.bz2 |
net: dsa: Fix load order between DSA drivers and taggers
The DSA core, DSA taggers and DSA drivers all make use of
module_init(). Hence they get initialised at device_initcall() time.
The ordering is non-deterministic. It can be a DSA driver is bound to
a device before the needed tag driver has been initialised, resulting
in the message:
No tagger for this switch
Rather than have this be fatal, return -EPROBE_DEFER so that it is
tried again later once all the needed drivers have been loaded.
Fixes: d3b8c04988ca ("dsa: Add boilerplate helper to register DSA tag driver modules")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions