]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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)
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>

No differences found