ibmvnic: Bound waits for device queries
authorThomas Falcon <tlfalcon@linux.ibm.com>
Mon, 25 Nov 2019 23:12:55 +0000 (17:12 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Nov 2019 21:19:31 +0000 (13:19 -0800)
commit476d96ca9cc59ad07dc452184880b635e4e29b06
tree1fc9f27d94eade01f30a3ed4629817228f27cf80
parent2147e3d09e9ba6edc54b1b4bb7d8fc3cca96776b
ibmvnic: Bound waits for device queries

Create a wrapper for wait_for_completion calls with additional
driver checks to ensure that the driver does not wait on a
disabled device. In those cases or if the device does not respond
in an extended amount of time, this will allow the driver an
opportunity to recover.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c