sky2: fix shutdown synchronization
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 17 Jun 2009 07:30:35 +0000 (07:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jun 2009 01:46:51 +0000 (18:46 -0700)
commit6c83504ff24f4a6bf28ad865e7c0619b17349e08
tree1c1ff9bd9a2d857b9b5a488b80b839236c9ae07b
parent1fd82f3cafa8e7854db08eccbdb8a9218225e1ef
sky2: fix shutdown synchronization

The logic in sky2_down was incorrect. Receiver could report status
after rx_stop was called.

The steps need to be:
   * stop new frames from being transmitted
   * shut off transmit/receive logic
   * synchronize with NAPI to process status info about transmitter
     and receiver

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c