[PATCH 3/4] drm/amd/amdgpu: Cleanup uvd_v4_2_soft_reset()

Tom St Denis tom.stdenis at amd.com
Tue May 16 12:45:29 UTC 2017


Use WREG32_FIELD instead.

Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
index cd793c262674..d4e35ff8d9cd 100644
--- a/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
@@ -662,8 +662,7 @@ static int uvd_v4_2_soft_reset(void *handle)
 
 	uvd_v4_2_stop(adev);
 
-	WREG32_P(mmSRBM_SOFT_RESET, SRBM_SOFT_RESET__SOFT_RESET_UVD_MASK,
-			~SRBM_SOFT_RESET__SOFT_RESET_UVD_MASK);
+	WREG32_FIELD(SRBM_SOFT_RESET, SOFT_RESET_UVD, 1);
 	mdelay(5);
 
 	return uvd_v4_2_start(adev);
-- 
2.12.0



More information about the amd-gfx mailing list