firmware_class: Log every success and failure against given device
authorBen Hutchings <ben@decadent.org.uk>
Sun, 9 Dec 2012 16:02:00 +0000 (16:02 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 31 Dec 2020 06:26:43 +0000 (06:26 +0000)
commitc60696870a07826e0f2a9fc5d74522e267ac59b3
tree7b8694b574928afcaee0465aae940da6d1529ff9
parentb0679f63ae79abe59680708e12f79b96f2c4a58b
firmware_class: Log every success and failure against given device

Forwarded: no

The hundreds of users of request_firmware() have nearly as many
different log formats for reporting failures.  They also have only the
vaguest hint as to what went wrong; only firmware_class really knows
that.  Therefore, add specific log messages for the failure modes that
aren't currently logged.

In case of a driver that tries multiple names, this may result in the
impression that it failed to initialise.  Therefore, also log successes.

This makes many error messages in drivers redundant, which will be
removed in later patches.

This does not cover the case where we fall back to a user-mode helper
(which is no longer enabled in Debian).

NOTE: hw-detect will depend on the "firmware: failed to load %s (%d)\n"
format to detect missing firmware.

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name firmware_class-log-every-success-and-failure.patch
drivers/base/firmware_loader/fallback.c
drivers/base/firmware_loader/main.c