]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:42 +0000 (08:34 +0100)
commit85a19b0e31e256e77fd4124804b9cec10619de5e
tree0755f50c31636b89a5655d34b9eb1234d942b9ca
parentef3d73fe8836192410cbc2d2a15b2946e26a45d1
r8169: check that Realtek PHY driver module is loaded

[ Upstream commit f325937735498afb054a0195291bbf68d0b60be5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/realtek/r8169.c