drm/amd: Use `amdgpu_ucode_*` helpers for SMU
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 3 Jan 2023 21:40:19 +0000 (15:40 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jan 2023 19:32:57 +0000 (14:32 -0500)
commit315d1716d64e61bd5c8ad13a725ada6c8a4574b9
tree3866eadd192014a619dbdb6b6385660c14df8bd8
parent515266373746ec5faee2ca797804276abb8880d1
drm/amd: Use `amdgpu_ucode_*` helpers for SMU

The `amdgpu_ucode_request` helper will ensure that the return code for
missing firmware is -ENODEV so that early_init can fail.

The `amdgpu_ucode_release` helper is for symmetry on unloading.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c