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)
commit95a96e08967fed6e64e53b2d6a5e153a4d605e11
tree13a9605b4ca8573223aac95a173f804f661cccf4
parentd11d354b7b02aac09a20a8157bf990670f169f6f
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