]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: check that Realtek PHY driver module is loaded
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 13 Dec 2019 15:53:37 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Dec 2019 23:59:18 +0000 (15:59 -0800)
commitb21013e589316a023a0f0fb7666a4efce77ccd44
tree617c8227ea5813e7162f3ac3a0a52ff784463847
parente7964c9809bedc53a0bb4e7df54cd933d1c35720
r8169: check that Realtek PHY driver module is loaded

Some users complained about problems with r8169 and it turned out that
the generic PHY driver was used instead instead of the dedicated one.
In all cases reason was that r8169.ko was in initramfs, but realtek.ko
not. Manually adding realtek.ko to initramfs fixed the issues.
Root cause seems to be that tools like dracut and genkernel don't
consider softdeps. Add a check for loaded Realtek PHY driver module
and provide the user with a hint if it's not loaded.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c