Search Linux Wireless

[RFC/RFT 0/5] Firmware load change for various wireless drivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These patches change 5 drivers that are now loading firmware from the probe
routine. As each of them has the possibility of loading more than one
file, the method of using request_firmware_nowait() has some difficulty,
as it gets duplicate names in sysfs when the requests are launched in
parallel. When the callback routine is used to launch a second request,
the structure gets messy, particularly with b43legacy, which loads 4
firmware files for some hardware. My solution is to create a delayed work
queue that is started in the probe routine with a delay of one second. The
routine that is triggered does the normal request_firmware() calls
and starts mac80211 when the firmware is available.

The patches for b43legacy, b43, and p54usb have been tested. Those for
p54pci and p54spi are only compile tested.

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---

Larry Finger (5):
  b43legacy: Load firmware from work queue instead of from probe
    routine
  b43: Load firmware from a work queue and not from the probe routine
  p54usb: Load firmware from work queue and not from probe routine
  p54pci: Load firmware from work queue and not from probe routine
  p54spi: Load firmware from work queue and not from probe routine

 drivers/net/wireless/b43/b43.h             |    3 +
 drivers/net/wireless/b43/main.c            |   38 +++++----
 drivers/net/wireless/b43legacy/b43legacy.h |    3 +
 drivers/net/wireless/b43legacy/main.c      |   32 +++++---
 drivers/net/wireless/p54/p54pci.c          |   66 +++++++++------
 drivers/net/wireless/p54/p54pci.h          |    1 +
 drivers/net/wireless/p54/p54spi.c          |   38 ++++++---
 drivers/net/wireless/p54/p54spi.h          |    1 +
 drivers/net/wireless/p54/p54usb.c          |  120 +++++++++++++---------------
 drivers/net/wireless/p54/p54usb.h          |    1 +
 10 files changed, 174 insertions(+), 129 deletions(-)

-- 
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux