be2net: use CSR-BAR SEMAPHORE reg for BE2/BE3
authorSathya Perla <sathya.perla@emulex.com>
Tue, 5 Mar 2013 22:23:20 +0000 (22:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Mar 2013 19:57:17 +0000 (14:57 -0500)
commitc5b3ad4c67989c778e4753be4f91dc7193a04d21
treeb2dff2d67ba34df3ec8975cbec4ddc2edffa5f2d
parentf422d2a04fe2e661fd439c19197a162cc9a36416
be2net: use CSR-BAR SEMAPHORE reg for BE2/BE3

The SLIPORT_SEMAPHORE register shadowed in the
config-space may not reflect the correct POST stage after
an EEH reset in BE2/3; it may return FW_READY state even though
FW is not ready. This causes the driver to prematurely
poll the FW mailbox and fail.

For BE2/3 use the CSR-BAR/0xac instead.

Reported-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_hw.h
drivers/net/ethernet/emulex/benet/be_main.c