On Wed, Jul 2, 2014 at 11:07 AM, Luis R. Rodriguez
<mcg...@do-not-panic.com> wrote:
> From: "Luis R. Rodriguez" <mcg...@suse.com>
>
> Now that the udev firmware loader is optional request_firmware()
> will not provide any information on the kernel ring buffer if
> direct firmware loading failed and udev firmware loading is disabled.
> If no information is needed request_firmware_direct() should be used
> for optional firmware, at which point drivers can take on the onus
> over informing of any failures, if udev firmware loading is disabled
> though we should at the very least provide some sort of information
> as when the udev loader was enabled by default back in the days.
>
> With this change with a simple firmware load test module [0]:
>
> Example output without FW_LOADER_USER_HELPER_FALLBACK
>
> platform fake-dev.0: Direct firmware load for fake.bin failed
> with error -2
>
> Example with FW_LOADER_USER_HELPER_FALLBACK
>
> platform fake-dev.0: Direct firmware load for fake.bin failed with error -2
> platform fake-dev.0: Falling back to user helper
>
> Without this change without FW_LOADER_USER_HELPER_FALLBACK we
> get no output logged upon failure.
>
> Cc: Tom Gundersen <t...@jklm.no>
> Cc: Ming Lei <ming....@canonical.com>
> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org>
> Cc: Abhay Salunke <abhay_salu...@dell.com>
> Cc: Stefan Roese <s...@denx.de>
> Cc: Arnd Bergmann <a...@arndb.de>
> Cc: Kay Sievers <k...@vrfy.org>
> Cc: Takashi Iwai <ti...@suse.de>
> Signed-off-by: Luis R. Rodriguez <mcg...@suse.com>

Looks fine, also it is a cleanup.

Acked-by: Ming Lei <ming....@canonical.com>

Thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to