drm/amdgpu: use REG32_PCIE wrapper instead for psp
authorHuang Rui <ray.huang@amd.com>
Mon, 25 Feb 2019 07:02:44 +0000 (15:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Feb 2019 03:18:59 +0000 (22:18 -0500)
commit76f8f6992a0cf7e4a8401eadaa67ea4a06e54568
treebab247bcdd198f82c63b05a6ef942f15c3851eb9
parent5307db85c745c46295f3ee2159667e1606fba268
drm/amdgpu: use REG32_PCIE wrapper instead for psp

This patch uses REG32_PCIE wrapper instead of writting pci_index2 and reading
pci_data2 for psp. This sequence should be protected by pcie_idx_lock.

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