summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/p54pci.h
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2012-07-24 21:16:42 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-08-06 14:56:33 -0400
commit95a96e08967fed6e64e53b2d6a5e153a4d605e11 (patch)
tree13a9605b4ca8573223aac95a173f804f661cccf4 /drivers/net/wireless/p54/p54pci.h
parentd11d354b7b02aac09a20a8157bf990670f169f6f (diff)
downloadop-kernel-dev-95a96e08967fed6e64e53b2d6a5e153a4d605e11.zip
op-kernel-dev-95a96e08967fed6e64e53b2d6a5e153a4d605e11.tar.gz
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>
Diffstat (limited to 'drivers/net/wireless/p54/p54pci.h')
-rw-r--r--drivers/net/wireless/p54/p54pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54pci.h b/drivers/net/wireless/p54/p54pci.h
index 7aa509f..68405c1 100644
--- a/drivers/net/wireless/p54/p54pci.h
+++ b/drivers/net/wireless/p54/p54pci.h
@@ -105,6 +105,7 @@ struct p54p_priv {
struct sk_buff *tx_buf_data[32];
struct sk_buff *tx_buf_mgmt[4];
struct completion boot_comp;
+ struct completion fw_loaded;
};
#endif /* P54USB_H */
OpenPOWER on IntegriCloud