Commit 72f02485 authored by Sathya Perla's avatar Sathya Perla Committed by David S. Miller

be2net: stop checking the UE registers after an EEH error

Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30128031
...@@ -1978,6 +1978,9 @@ void be_detect_dump_ue(struct be_adapter *adapter) ...@@ -1978,6 +1978,9 @@ void be_detect_dump_ue(struct be_adapter *adapter)
u32 sliport_status = 0, sliport_err1 = 0, sliport_err2 = 0; u32 sliport_status = 0, sliport_err1 = 0, sliport_err2 = 0;
u32 i; u32 i;
if (adapter->eeh_err || adapter->ue_detected)
return;
if (lancer_chip(adapter)) { if (lancer_chip(adapter)) {
sliport_status = ioread32(adapter->db + SLIPORT_STATUS_OFFSET); sliport_status = ioread32(adapter->db + SLIPORT_STATUS_OFFSET);
if (sliport_status & SLIPORT_STATUS_ERR_MASK) { if (sliport_status & SLIPORT_STATUS_ERR_MASK) {
...@@ -2039,7 +2042,6 @@ static void be_worker(struct work_struct *work) ...@@ -2039,7 +2042,6 @@ static void be_worker(struct work_struct *work)
struct be_rx_obj *rxo; struct be_rx_obj *rxo;
int i; int i;
if (!adapter->ue_detected)
be_detect_dump_ue(adapter); be_detect_dump_ue(adapter);
/* when interrupts are not yet enabled, just reap any pending /* when interrupts are not yet enabled, just reap any pending
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment