]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Allow device probe if the device is not ready at boot
authorCristobal Forno <cforno12@linux.ibm.com>
Thu, 10 Jun 2021 17:08:35 +0000 (11:08 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 21:35:07 +0000 (14:35 -0700)
commitbe215a73b3371e7f80a7b8f88787b218d5b57c1e
tree7477ba636cc94ef2b7b633926f85e0a3134cf49d
parent5cbc35f70d300a266e83b308113363f94cdf1a45
ibmvnic: Allow device probe if the device is not ready at boot

Allow the device to be initialized at a later time if
it is not available at boot. The device will be allowed to probe but
will be given a "down" state. After completing device probe and
registering the net device, the driver will await an interrupt signal
from its partner device, indicating that it is ready for boot. The
driver will schedule a work event to perform the necessary procedure
and begin operation.

Co-developed-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Cristobal Forno <cforno12@linux.ibm.com>
Acked-by: Lijun Pan <lijunp213@gmail.com>
Reviewed-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h