linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/RFT 0/5] Firmware load change for various wireless drivers
@ 2012-02-13 19:37 Larry Finger
  2012-02-13 19:37 ` [RFC/RFT 1/5] b43legacy: Load firmware from work queue instead of from probe routine Larry Finger
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Larry Finger @ 2012-02-13 19:37 UTC (permalink / raw)
  To: linville; +Cc: Larry Finger, linux-wireless

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@lwfinger.net>
---

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-02-29 20:01 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-13 19:37 [RFC/RFT 0/5] Firmware load change for various wireless drivers Larry Finger
2012-02-13 19:37 ` [RFC/RFT 1/5] b43legacy: Load firmware from work queue instead of from probe routine Larry Finger
2012-02-13 19:37 ` [RFC/RFT 2/5] b43: Load firmware from a work queue and not from the " Larry Finger
2012-02-13 23:06   ` Julian Calaby
2012-02-13 23:28     ` Larry Finger
2012-02-13 23:41       ` Julian Calaby
2012-02-13 23:51         ` Larry Finger
2012-02-13 19:37 ` [RFC/RFT 3/5] p54usb: Load firmware from work queue and not from " Larry Finger
2012-02-13 19:37 ` [PATCH 4/5] p54pci: " Larry Finger
2012-02-29 15:59   ` Larry Finger
2012-02-29 17:43     ` Christian Lamparter
2012-02-29 18:15       ` Larry Finger
2012-02-29 18:27         ` Christian Lamparter
2012-02-13 19:37 ` [RFC/RFT 5/5] p54spi: " Larry Finger
2012-02-13 21:57   ` Michael Büsch
2012-02-29 16:00   ` Larry Finger
2012-02-29 19:54     ` Max Filippov
2012-02-29 20:01       ` Larry Finger
2012-02-14 10:56 ` [RFC/RFT 0/5] Firmware load change for various wireless drivers Johannes Berg
2012-02-14 16:34   ` Larry Finger
2012-02-14 16:37     ` Johannes Berg
2012-02-14 16:57       ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).