drm/i915/dmc: handle request_firmware() errors separately
authorJani Nikula <jani.nikula@intel.com>
Fri, 19 Apr 2024 09:41:54 +0000 (12:41 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 22 Apr 2024 13:48:13 +0000 (16:48 +0300)
commit7de13ccf930890b164c51e951b7d7a6d8b0e9fb9
tree3d5fbcdc130aa12cfaaca59523ade07a4e688c9a
parentd08184aa906508fc1f772b1d0b4f44a33c086f33
drm/i915/dmc: handle request_firmware() errors separately

Clarify request_firmware() error handling. Don't proceed to trying to
parse non-existent firmware or check for payload when request_firmware()
failed to begin with. There's no reason to release_firmware() either
when request_firmware() failed.

Also move the message about DMC firmware homepage here, as in other
cases the user probably has some firmware, although its parsing fails
for some reason.

Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/0654bb3480f8d2103225d26f665badead5495532.1713519628.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_dmc.c