]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tg3: Dont dump DMA error when interface not ready.
authorfjin <joe.jin@oracle.com>
Tue, 27 Sep 2011 06:55:34 +0000 (14:55 +0800)
committerGuru Anbalagane <guru.anbalagane@oracle.com>
Wed, 28 Sep 2011 18:27:44 +0000 (11:27 -0700)
commit3454db575e0480bcc97e998710dfc73da02ed4dc
tree84087e74fa08c68361854facddd04e22b71b2850
parent8cac1300f2d0dd18b2104ccc20aa00ca237343e1
tg3: Dont dump DMA error when interface not ready.

This fixes orabug 12981473.

When do testing with BCM5704 Gigabit Ethernet, bootup get below warning:

tg3 0000:03:01.0: eth0: DMA Status error.  Resetting chip.
<Registers state of device>
tg3 0000:03:01.0: eth0: 0: Host status block [00000007:00000002:(0000:0000:0000):(0000:0000)]
tg3 0000:03:01.0: eth0: 0: NAPI info [00000001:00000002:(0000:0000:01ff):0000:(00c8:0000:0000:0000)]
tg3 0000:03:01.0: eth0: Link is up at 1000 Mbps, full duplex
tg3 0000:03:01.0: eth0: Flow control is on for TX and on for RX
tg3 0000:03:01.0: tg3_stop_block timed out, ofs=4800 enable_bit=2
tg3 0000:03:01.0: eth0: Link is down
tg3 0000:03:01.0: eth0: Link is up at 1000 Mbps, full duplex
tg3 0000:03:01.0: eth0: Flow control is on for TX and on for RX

We need not to check the status and dump registers status if the device
not ready,

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Reported-by: Gurudas Pai <gurudas.pai@oracle.com>
drivers/net/tg3.c