linux/drivers/net/wireless/p54
Luis R. Rodriguez 80140b71e0 p54: use request_firmware_direct() for optional EEPROM override
The p54 driver uses request_firmware() twice, once for actual
firmware and then another time for an optional user overide on
EEPROM, 3826.eeprom. The custom EEPROM  is optional but if not
present we'll introduce an extra lag of 60 seconds with udev
present. Annotate we don't want udev nonsense here to avoid
the lag in case its not present.

This was found with the following SmPL patch.

@ firmware_not_critical @
expression cf;
expression config_file;
expression dev;
int ret;
identifier l;
statement S;
@@

-	ret = request_firmware(&cf, config_file, dev);
+	ret = request_firmware_direct(&cf, config_file, dev);
	if (ret < 0) {
		... when != goto l;
		    when != return ret;
		    when any
	} else {
		...
		release_firmware(cf);
		...
	}

Cc: Takashi Iwai <tiwai@suse.de>
Cc: Christian Lamparter <chunkeey@googlemail.com>
Cc: linux-wireless@vger.kernel.org
Cc: cocci@systeme.lip6.fr
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Acked-By: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-06-25 15:40:40 -04:00
..
eeprom.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
eeprom.h p54: parse output power table 2012-08-10 15:17:14 -04:00
fwio.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
led.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
lmac.h mac80211: move TX station pointer and restructure TX 2012-07-31 16:18:39 +02:00
main.c mac80211: add vif to flush call 2014-04-09 10:55:29 +02:00
Makefile
net2280.h drivers/net/wireless: Fix FSF address in file headers 2013-12-11 10:56:20 -05:00
p54.h p54: only unregister ieee80211_hw when it has been registered 2012-04-09 16:07:35 -04:00
p54pci.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
p54pci.h p54pci: convert driver to use asynchronous firmware loading 2012-08-06 14:56:33 -04:00
p54spi.c p54: use request_firmware_direct() for optional EEPROM override 2014-06-25 15:40:40 -04:00
p54spi.h
p54spi_eeprom.h
p54usb.c p54usb: fix leaks at failure path in p54u_probe() 2014-03-14 14:49:13 -04:00
p54usb.h p54usb: Load firmware asynchronously 2012-04-09 16:07:35 -04:00
txrx.c p54: clamp properly instead of just truncating 2014-01-13 14:50:06 -05:00