]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Add support to catch bits set in INT_CAUSE5
authorRahul Kundu <rahul.kundu@chelsio.com>
Wed, 25 Mar 2020 11:53:09 +0000 (04:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Mar 2020 19:22:33 +0000 (12:22 -0700)
commit1c5e44722ae925d822b63c2b308c3cb4c580b04f
treef6c5e142505f5bb73228d6a9fdbae9492bb80858
parent617ec96827d8e224c8fdd79819d8d87b8b2939d0
cxgb4: Add support to catch bits set in INT_CAUSE5

This commit adds support to catch any bits set in SGE_INT_CAUSE5 for Parity Errors.
F_ERR_T_RXCRC flag is used to ignore that particular bit as it is not considered as fatal.
So, we clear out the bit before looking for error.
This patch now read and report separately all three registers(Cause1, Cause2, Cause5).
Also, checks for errors if any.

Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Rahul Kundu <rahul.kundu@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h