]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: improve ibmvnic_init and ibmvnic_reset_init
authorLijun Pan <ljp@linux.ibm.com>
Wed, 19 Aug 2020 22:52:24 +0000 (17:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:11:33 +0000 (16:11 -0700)
commitf0d506ad72dc8da19c73d486d3ea31e692b9363b
tree7dcb1568dfe2ddaa7b510c513568c5a09d79eb5c
parenta7bf9f0a1ceb7ae752f9cdba0fdf9a02e55988c4
ibmvnic: improve ibmvnic_init and ibmvnic_reset_init

When H_SEND_CRQ command returns with H_CLOSED, it means the
server's CRQ is not ready yet. Instead of resetting immediately,
we wait for the server to launch passive init.
ibmvnic_init() and ibmvnic_reset_init() should also return the
error code from ibmvnic_send_crq_init() call.

Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c