linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Could we have request_firmware_nowait with FW_OPT_NO_WARN?
@ 2016-12-10 15:54 Rafał Miłecki
  2016-12-12  8:12 ` Johannes Berg
  2016-12-12 14:13 ` Luis R. Rodriguez
  0 siblings, 2 replies; 9+ messages in thread
From: Rafał Miłecki @ 2016-12-10 15:54 UTC (permalink / raw)
  To: Ming Lei, Luis R. Rodriguez, Linux Kernel Mailing List
  Cc: linux-wireless@vger.kernel.org, brcm80211 development

Hi,

In brcmfmac we use request_firmware_nowait and if fetching firmware
with NVRAM variables fails then we try to fallback to the platform one
(see brcmf_fw_request_code_done & brcmf_fw_request_nvram_done).

Some problem for us is that on devices with platform NVRAM we get this erro=
r:
Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
(which is harmless if getting platform NVRAM succeeds). This error is
quite confusing for users. They think something went wrong, they
expect problems & they report it back to us. Obviously I don't want
ugly hacks like:
pr_info("Got platform NVRAM, ignore above error\n");

So it would be nice to have version of request_firmware_nowait with
FW_OPT_NO_WARN. If requesting firmware NVRAM fails *and* getting
platform NVRAM fails, then I could to print error on my own.
Does it make sense? Can you see a point of my request?

Do you have any suggestion for this? If and how I could proceed with
implementation?

request_firmware_nowait already has "bool uevent" argument, I don't
want it to have argument per every available option. I was thinking
about moving FW_OPT_* defines to the include/linux/firmware.h but I'm
not sure if it's OK as they depend on:
CONFIG_FW_LOADER_USER_HELPER
and
CONFIG_FW_LOADER_USER_HELPER_FALLBACK
With defines placed in firmware.h I could replace "bool uevent" with
"unsigned int opt_flags".
Does it sound like a good plan? Or do you have any better idea?

--=20
Rafa=C5=82

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

end of thread, other threads:[~2016-12-12 14:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10 15:54 Could we have request_firmware_nowait with FW_OPT_NO_WARN? Rafał Miłecki
2016-12-12  8:12 ` Johannes Berg
2016-12-12  8:32   ` Rafał Miłecki
2016-12-12  9:26     ` Arend Van Spriel
2016-12-12  9:53       ` Rafał Miłecki
2016-12-12 14:07         ` Luis R. Rodriguez
2016-12-12 14:16           ` Rafał Miłecki
2016-12-12 11:48     ` Kalle Valo
2016-12-12 14:13 ` Luis R. Rodriguez

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).