]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipconfig: Relax fw_devlink if we need to mount a network rootfs
authorSaravana Kannan <saravanak@google.com>
Wed, 1 Jun 2022 07:07:01 +0000 (00:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 13:57:54 +0000 (15:57 +0200)
commitc696ac9e9f8d85fd6be2b5066bd817aba887d108
treeb9a7fef16fb28f688f3c430f80f69227084e1eae
parentea1193f8f2fd2356314f976e748747a79b3df501
net: ipconfig: Relax fw_devlink if we need to mount a network rootfs

If there are network devices that could probe without some of their
suppliers probing and those network devices are needed to mount a
network rootfs, then fw_devlink=on might break that usecase by blocking
the network devices from probing by the time IP auto config starts.

So, if no network devices are available when IP auto config is enabled
and we have a network rootfs, make sure fw_devlink doesn't block the
probing of any device that has a driver and then retry finding a network
device.

Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20220601070707.3946847-6-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ipconfig.c