mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-14 00:24:15 +08:00
ibmvnic: continue to init in CRQ reset returns H_CLOSED
Continue the reset path when partner adapter is not ready or H_CLOSED is returned from reset crq. This patch allows the CRQ init to proceed to establish a valid CRQ for traffic to flow after reset. Signed-off-by: Dany Madden <drt@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b59eabd23e
commit
8b40eb7350
@ -1971,13 +1971,18 @@ static int do_reset(struct ibmvnic_adapter *adapter,
|
||||
release_sub_crqs(adapter, 1);
|
||||
} else {
|
||||
rc = ibmvnic_reset_crq(adapter);
|
||||
if (!rc)
|
||||
if (rc == H_CLOSED || rc == H_SUCCESS) {
|
||||
rc = vio_enable_interrupts(adapter->vdev);
|
||||
if (rc)
|
||||
netdev_err(adapter->netdev,
|
||||
"Reset failed to enable interrupts. rc=%d\n",
|
||||
rc);
|
||||
}
|
||||
}
|
||||
|
||||
if (rc) {
|
||||
netdev_err(adapter->netdev,
|
||||
"Couldn't initialize crq. rc=%d\n", rc);
|
||||
"Reset couldn't initialize crq. rc=%d\n", rc);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user