]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: don't request firmware when there's no userspace.
authorFrançois Romieu <romieu@fr.zoreil.com>
Sun, 24 Apr 2011 15:38:48 +0000 (17:38 +0200)
committerFrancois romieu <romieu@fr.zoreil.com>
Sun, 24 Apr 2011 15:42:57 +0000 (17:42 +0200)
commitf2f4cd48dd4ab3399f4316ed3907771262c8762f
tree4ebb736e88c5629c39a23509db4955f047f0f645
parent59bf76a1a083e6db28c9a91e01ac17c0f4baaeff
r8169: don't request firmware when there's no userspace.

The firmware is cached during the first successfull call to open() and
released once the network device is unregistered. The driver uses the
cached firmware between open() and unregister_netdev().

So far the firmware is optional : a failure to load the firmware does
not prevent open() to success. It is thus necessary to 1) unregister
all 816x / 810[23] devices and 2) force a driver probe to issue a new
firmware load.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Fixed-by: Ciprian Docan <docan@eden.rutgers.edu>
Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
drivers/net/r8169.c