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>
Wed, 24 Jun 2020 18:56:57 +0000 (19:56 +0100)
commit30f6e8b1c9569e484957d19abbf5e3bbb9ac27a1
tree96e9461e8a4c9f9936f3171adf75e565d19953ea
parent7437106ff7ed3fd697890f85820fcfd9b60f683e
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