diff options
author | Thomas Falcon <tlfalcon@linux.vnet.ibm.com> | 2018-05-16 15:49:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-17 14:57:19 -0400 |
commit | 134bbe7f21f4455c8be64f945b8b67094f768de0 (patch) | |
tree | 754e6e5240e86bea94ab817797159b0239b230da /drivers/net | |
parent | 4cf2ddf3e329d4ec1e3edda3465a202b5665be0e (diff) | |
download | linux-134bbe7f21f4455c8be64f945b8b67094f768de0.tar.bz2 |
ibmvnic: Fix non-fatal firmware error reset
It is not necessary to disable interrupt lines here during a reset
to handle a non-fatal firmware error. Move that call within the code
block that handles the other cases that do require interrupts to be
disabled and re-enabled.
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index 9e08917cda1f..1b9c22f28fbf 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1822,9 +1822,8 @@ static int do_reset(struct ibmvnic_adapter *adapter, if (rc) return rc; } + ibmvnic_disable_irqs(adapter); } - - ibmvnic_disable_irqs(adapter); adapter->state = VNIC_CLOSED; if (reset_state == VNIC_CLOSED) |