]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: Broken self-test in SF mode on 578xx
authorVladislav Zolotarov <vladz@broadcom.com>
Thu, 21 Jul 2011 07:58:54 +0000 (07:58 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 08:31:34 +0000 (16:31 +0800)
commitfda87772540b6871c471f43466c071a45ebad6cd
treef40559ed91a84f9c0cb5d665284ef5126c93d9aa
parentda4716868e2a53cae59cdfdd77bcc18b4e8b8094
bnx2x: Broken self-test in SF mode on 578xx

This patch fixes both the failure in the self-test on 578xx
and a hole in a parity recovery flow that this failure
has discovered:
 - internal 'pending' state in a VLAN_MAC object wasn't been cleared
when the object state change was called with DRV_ONLY flag, which in
particular happens when a parity error happens during the self-test.
 - bp->sp_state wasn't cleared in the similar circumstances as described
above.

Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 7961689586d30a34c10b18ac95ba1cd72cefe725)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_cmn.c
drivers/net/bnx2x/bnx2x_reg.h
drivers/net/bnx2x/bnx2x_sp.c