]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab325bf2e7478ddc7b445a035c7ce92a10528aa8
treeb2dff2d67ba34df3ec8975cbec4ddc2edffa5f2d
parenta293ad4cc00bd5453d60f22cf4a1637a3fc5e9fd
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