]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/amdgpu: Refine function amdgpu_device_ip_late_init
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 3 Oct 2018 08:10:45 +0000 (16:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Oct 2018 19:48:28 +0000 (14:48 -0500)
commit73f847dbab26cd9b962ce03e413612d7a2b2b47d
treefbe9a3078fcdbdc5153ae5e4d70deff5b4f7da24
parent009d9ed6c4b7b84dbff8314d74233da9237a4560
drm/amdgpu: Refine function amdgpu_device_ip_late_init

1. only call late_init when hw_init successful,
   so check status.hw instand of status.valid in late_init.
2. set status.late_initialized true if late_init was not implemented.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c