]> git.baikalelectronics.ru Git - kernel.git/commit
smsc9420: fix interrupt signalling test failures
authorSteve Glendinning <steve.glendinning@smsc.com>
Fri, 30 Jan 2009 01:29:15 +0000 (17:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Jan 2009 01:29:15 +0000 (17:29 -0800)
commit739d2fec4e4c970cd39891f302b1a0d400902aa3
tree8f06404437dc425a8c611ea6d9be064892470c97
parentc1987de7f40d3b36adf458c55561cd504b51493e
smsc9420: fix interrupt signalling test failures

smsc9420 performs an interrupt signalling test when the interface is
brought up.  The current code mistakenly sets its test flag to false
AFTER enabling the software interrupt source, making failure quite
likely.

This patch changes the code to set the test flag BEFORE enabling
interrupts. I've also removed an smp_wmb because the following spinlock
provides an implicit memory barrier.

Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/smsc9420.c