summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/ecore_init.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/bxe/ecore_init.h')
-rw-r--r--sys/dev/bxe/ecore_init.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/bxe/ecore_init.h b/sys/dev/bxe/ecore_init.h
index 7eab811..31417cc 100644
--- a/sys/dev/bxe/ecore_init.h
+++ b/sys/dev/bxe/ecore_init.h
@@ -749,10 +749,17 @@ static inline void ecore_set_mcp_parity(struct bxe_softc *sc, uint8_t enable)
for (i = 0; i < ARRSIZE(mcp_attn_ctl_regs); i++) {
reg_val = REG_RD(sc, mcp_attn_ctl_regs[i].addr);
+#if 0
if (enable)
reg_val |= MISC_AEU_ENABLE_MCP_PRTY_BITS; /* Linux is using mcp_attn_ctl_regs[i].bits */
else
reg_val &= ~MISC_AEU_ENABLE_MCP_PRTY_BITS; /* Linux is using mcp_attn_ctl_regs[i].bits */
+#else
+ if (enable)
+ reg_val |= mcp_attn_ctl_regs[i].bits;
+ else
+ reg_val &= ~mcp_attn_ctl_regs[i].bits;
+#endif
REG_WR(sc, mcp_attn_ctl_regs[i].addr, reg_val);
}
OpenPOWER on IntegriCloud