drm/amdgpu: fix pm_load_smu_firmware for SR-IOV
authorTrigger Huang <Trigger.Huang@amd.com>
Tue, 11 Jun 2019 10:32:14 +0000 (18:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:51:38 +0000 (12:51 -0500)
commit4a39ec6ac5f36ff6df7e1f603ea445bd858047fa
treefb4e7fee25b9aab174d36db341e479f827a7e6a4
parent233d87a579b8adcc6da5823fa507ecb6675e7562
drm/amdgpu: fix pm_load_smu_firmware for SR-IOV

For SR-IOV VF, powerplay may not be supported, in this case,
error '-EINVAL' should not be returned.

Signed-off-by: Trigger Huang <Trigger.Huang@amd.com>
Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c