]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: status ring race fix
authorStephen Hemminger <shemminger@linux-foundation.org>
Mon, 5 Nov 2007 23:52:09 +0000 (15:52 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 10 Nov 2007 09:25:08 +0000 (04:25 -0500)
commit10b54b15c9a6f8d1fc374aa66681300c7f061fa5
treed76a14137b6b86a8e4500a6c03cb4201af975bd5
parentcb63ef5ca92c0c72382b08c81a94d38ae309136b
sky2: status ring race fix

The D-Link PCI-X board (and maybe others) can lie about status
ring entries. It seems it will update the register for last status
index before completing the DMA for the ring entry. To avoid reading
stale data, zap the old entry and check.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/sky2.c