OSDN Git Service

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)
commit53f8b1b25419a14b784feb6706bfe5bac03c5a75
tree7477ba636cc94ef2b7b633926f85e0a3134cf49d
parent1b6c2151dbff7978198ff02ac2448954becd976f
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