]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fix issue with loading PHY driver w/o initramfs
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 19 Jan 2019 09:30:21 +0000 (10:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jan 2019 22:44:26 +0000 (14:44 -0800)
commitcfa35c391a18a3463a08beb61684c3a4d8700a71
tree865dd9e26d7cf21dc93d60b59a3e0db0aa25e627
parent03c4f041c07d634c53d2e010e6c51e39e84f79b6
net: phy: fix issue with loading PHY driver w/o initramfs

It was reported that on a system with nfsboot and w/o initramfs network
fails because trying to load the PHY driver returns -ENOENT. Reason was
that due to missing initramfs the modprobe binary isn't available.
So we have to ignore error code -ENOENT.

Fixes: f79911dd9db0 ("net: phy: check return code when requesting PHY driver module")
Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c