mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amd: Show an info message about optional firmware missing
With the warning from the core about missing firmware gone, users still may be notified of missing optional firmware by a more friendly message to clarify it's optional. Suggested-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2a50d94b11
commit
b6e6871a56
1 changed files with 4 additions and 1 deletions
|
@ -1459,8 +1459,11 @@ int amdgpu_ucode_request(struct amdgpu_device *adev, const struct firmware **fw,
|
|||
|
||||
if (required == AMDGPU_UCODE_REQUIRED)
|
||||
r = request_firmware(fw, fname, adev->dev);
|
||||
else
|
||||
else {
|
||||
r = firmware_request_nowarn(fw, fname, adev->dev);
|
||||
if (r)
|
||||
drm_info(&adev->ddev, "Optional firmware \"%s\" was not found\n", fname);
|
||||
}
|
||||
if (r)
|
||||
return -ENODEV;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue