sfc: Reschedule any resets scheduled inside efx_pm_freeze()
authorSteve Hodgson <shodgson@solarflare.com>
Tue, 1 Jun 2010 11:17:24 +0000 (11:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:21:05 +0000 (02:21 -0700)
commit319ba649af30321ea221740833785b46e1fe6af3
treecc31c48c61fe42c3c4f7e516647fd19289eb9e5d
parent3bd9303500b1961d15aae783f17075936026ae79
sfc: Reschedule any resets scheduled inside efx_pm_freeze()

efx_pm_freeze() sets efx->state = STATE_FINI, which means
efx_reset_work() will abort any scheduled resets.

efx_pm_thaw() should reschedule efx_reset_work() again,
since a freeze/thaw will not have reset the hardware.

This bug was spotted by inspection - there is no real world example of
this happening.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c