Commit d003d86
lan78xx: Fix boot-time RTNL warning
lan78xx_set_eee calls phylink_ethtool_set_eee, which WARNs if rtnl_lock
has not been called. This is fine when called via the ethtool_ops
.set_eee entry point, presumably because the lock is already held, but
lan78xx_probe also calls lan78xx_set_eee via lan78xx_phy_init, which
requires an explicit rtnl_lock/unlock pair to avoid the warning.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>1 parent b2f773b commit d003d86
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2935 | 2935 | | |
2936 | 2936 | | |
2937 | 2937 | | |
| 2938 | + | |
2938 | 2939 | | |
| 2940 | + | |
2939 | 2941 | | |
2940 | 2942 | | |
2941 | 2943 | | |
| |||
0 commit comments