diff options
author | Luis R. Rodriguez <[email protected]> | 2014-06-24 15:39:43 -0700 |
---|---|---|
committer | John W. Linville <[email protected]> | 2014-06-25 15:40:40 -0400 |
commit | 80140b71e0bd2d9f6762791567cfd0aa04f20419 (patch) | |
tree | 883270237b22ae54925c9b9dbb2dc4702c3cfd6f /tools/perf/scripts/python/check-perf-trace.py | |
parent | 76ac9ed6ffb32eb38d2f208204159ae0cd3394b6 (diff) |
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 <[email protected]>
Cc: Christian Lamparter <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Luis R. Rodriguez <[email protected]>
Acked-By: Christian Lamparter <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions