]> git.baikalelectronics.ru Git - kernel.git/commit
s2io: fixing a ethtool test that is broken
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Tue, 10 Nov 2009 09:44:23 +0000 (09:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Nov 2009 03:56:53 +0000 (19:56 -0800)
commit697676c711acde55959b0f0b9ff91a28b187ae5f
treecb95515355b1614ce1aa8c428e3c4ebb2a6dedc2
parentab3c1a775fa595ef75e89e68ba48e3b918011c2f
s2io: fixing a ethtool test that is broken

Due commit 8bd8f8fda3319a3fb51224f0f21147e04060d25d, it is not more
possible to pci_restore_state() more than once without calling
pci_save_state() in the middle.

Actually running a ethtool test on s2io makes the card inactive,
and it needs to unload/reload the module to fix.

This patch just save the state just after it restore in order to
keep the old behaviour

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/s2io.c