bnx2x: remove redundant warning log
PATCH 1/1 bnx2x: remove redundant warning log
fix bug where a register which was only meant to be read in 578xx/57712 devices causes a bogus error message to be logged when read from other devices.
Signed-off-by Ariel Elior <[email protected]>
Signed-off-by Eilon Greenstein <[email protected]>
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +7 -4
@@ -9545,10 +9545,13 @@ static int __devinit bnx2x_prev_unload_common(struct bnx2x *bp)*/ static void __devinit bnx2x_prev_interrupted_dmae (struct bnx2x *bp) { -u32 val =REG_RD (bp,PGLUE_B_REG_PGLUE_B_INT_STS ); -if (val &PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN ) { -BNX2X_ERR ("was error bit was found to be set in pglueb upon startup. Clearing" ); -REG_WR (bp,PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR ,1 <<BP_FUNC (bp)); +if (!CHIP_IS_E1x (bp)) { +u32 val =REG_RD (bp,PGLUE_B_REG_PGLUE_B_INT_STS ); +if (val &PGLUE_B_PGLUE_B_INT_STS_REG_WAS_ERROR_ATTN ) { +BNX2X_ERR ("was error bit was found to be set in pglueb upon startup. Clearing" ); +REG_WR (bp,PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR , +1 <<BP_FUNC (bp)); + } } }
Signature · 1 line
1.7.9.GIT
From: "Ariel Elior" <[email protected]>
Date: Thu, 22 Nov 2012 19:16:17 +0200
Quoted 6 lines
fix bug where a register which was only meant to be read in 578xx/57712 devices causes a bogus error message to be logged when read from other devices.
Signed-off-by Ariel Elior <[email protected]>Signed-off-by Eilon Greenstein <[email protected]>
Applied.