drm/amdgpu: refactor function to init no-psp fw
authorLikun Gao <Likun.Gao@amd.com>
Thu, 9 Sep 2021 06:30:10 +0000 (14:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:37:34 +0000 (15:37 -0400)
commit02f958a20cb24311f519cd33d918a6de20c45157
tree303251a5aed91b1d9d27c4594be3636e4fc42115
parent06dd1888ee58d2529f55916e250f0e272b0b8407
drm/amdgpu: refactor function to init no-psp fw

Refactor the code of amdgpu_ucode_init_single_fw to make it more
readable as too many ucode need to handle on this function currently.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c