b43legacy: Load firmware from work queue instead of from probe routine
Recent changes in udev are causing problems for drivers that load firmware from the probe routine. As b43legacy has such a structure, it must be changed. As this driver loads 3 or 4 firmware files, changing to the asynchronous routine request_firmware_nowait() would be complicated. In this implementation, the probe routine starts a work queue that calls the firmware loading routines. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
843dc6644b
commit
a3ea2c76b1
@@ -581,6 +581,9 @@ struct b43legacy_wl {
|
||||
struct mutex mutex; /* locks wireless core state */
|
||||
spinlock_t leds_lock; /* lock for leds */
|
||||
|
||||
/* firmware loading work */
|
||||
struct work_struct firmware_load;
|
||||
|
||||
/* We can only have one operating interface (802.11 core)
|
||||
* at a time. General information about this interface follows.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user