]> git.baikalelectronics.ru Git - kernel.git/commit
p54pci: convert driver to use asynchronous firmware loading
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 24 Jul 2012 19:16:42 +0000 (21:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Aug 2012 18:56:33 +0000 (14:56 -0400)
commit4d1d5671496f27bbbf91069acf1dc7c077a44e9f
tree13a9605b4ca8573223aac95a173f804f661cccf4
parentf939b7e47848d6dba621034c89b31eceb819be7e
p54pci: convert driver to use asynchronous firmware loading

Drivers that load firmware from their probe routine have problems with the
latest versions of udev as they get timeouts while waiting for user
space to start. The problem is fixed by using request_firmware_nowait()
and delaying the start of mac80211 until the firmware is loaded.

To prevent the possibility of the driver being unloaded while the firmware
loading callback is still active, a completion queue entry is used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54pci.c
drivers/net/wireless/p54/p54pci.h