e100: Fix to allow systems with FW based cards to resume from STD
authorDavid Graham <david.graham@intel.com>
Wed, 28 Oct 2009 11:13:57 +0000 (04:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2009 11:13:57 +0000 (04:13 -0700)
commit7e15b0c9991dfe0bf05a2f8fab9154bb7827622e
tree113ef96d0785c6da9dbbc40473a7664553604088
parentc70948105d4f057b90d4a587246565782e51ed35
e100: Fix to allow systems with FW based cards to resume from STD

Devices with loadable firmware must have their firmware reloaded
after the system resumes from sleep, but the request_firmare()
API is not available at this point in the resume flow because
tasks are not yet running, and the system will hang if it is
called. Work around this issue by only calling request_firmware()
for a device's first firmware load, and cache a copy of the pointer
to the firmware blob for that device, so that we may reload firmware
images even during resume.

Signed-off-by: David Graham <david.graham@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e100.c