提交 aa476321 编写于 作者: C Casey Leedom 提交者: David S. Miller

cxgb3: Leave interrupts for fatal errors asserted in common code.

Platform code needs to deal with them now.
Signed-off-by: NDimitris Michailidis <dm@chelsio.com>
Signed-off-by: NCasey Leedom <leedom@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e05e6a39
...@@ -1408,6 +1408,7 @@ static int t3_handle_intr_status(struct adapter *adapter, unsigned int reg, ...@@ -1408,6 +1408,7 @@ static int t3_handle_intr_status(struct adapter *adapter, unsigned int reg,
fatal++; fatal++;
CH_ALERT(adapter, "%s (0x%x)\n", CH_ALERT(adapter, "%s (0x%x)\n",
acts->msg, status & acts->mask); acts->msg, status & acts->mask);
status &= ~acts->mask;
} else if (acts->msg) } else if (acts->msg)
CH_WARN(adapter, "%s (0x%x)\n", CH_WARN(adapter, "%s (0x%x)\n",
acts->msg, status & acts->mask); acts->msg, status & acts->mask);
...@@ -1843,11 +1844,10 @@ static int mac_intr_handler(struct adapter *adap, unsigned int idx) ...@@ -1843,11 +1844,10 @@ static int mac_intr_handler(struct adapter *adap, unsigned int idx)
t3_os_link_fault_handler(adap, idx); t3_os_link_fault_handler(adap, idx);
} }
t3_write_reg(adap, A_XGM_INT_CAUSE + mac->offset, cause);
if (cause & XGM_INTR_FATAL) if (cause & XGM_INTR_FATAL)
t3_fatal_err(adap); t3_fatal_err(adap);
t3_write_reg(adap, A_XGM_INT_CAUSE + mac->offset, cause);
return cause != 0; return cause != 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册