r8169: keep firmware in memory.
authorfrançois romieu <romieu@fr.zoreil.com>
Thu, 13 Jan 2011 13:07:53 +0000 (13:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jan 2011 05:49:57 +0000 (21:49 -0800)
commitf1e02ed109df5f99abf942b8ccc99960cb09dd38
treeb47e1934d70c990cb7731407b4b0af1953bf5071
parentd0f49157d1ce02671a450b566a12ff19baed6c19
r8169: keep firmware in memory.

The firmware agent is not available during resume. Loading the firmware
during open() (see eee3a96c6368f47df8df5bd4ed1843600652b337) is not
enough.

close() is run during resume through rtl8169_reset_task(), whence the
mildly natural release of firmware in the driver removal method instead.

It will help with http://bugs.debian.org/609538. It will not avoid
the 60 seconds delay when:
- there is no firmware
- the driver is loaded and the device is not up before a suspend/resume

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Jarek Kamiński <jarek@vilo.eu.org>
Cc: Hayes <hayeswang@realtek.com>
Cc: Ben Hutchings <benh@debian.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/r8169.c