]> 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)
commitd1d4c3b4d6399a1bb0646be2adee052c2da94133
tree7477ba636cc94ef2b7b633926f85e0a3134cf49d
parenteae70314b9167b1ae37cf5a273e107112863c5f4
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