Commit 66f92d10 authored by Ethan Carter Edwards's avatar Ethan Carter Edwards Committed by Alex Deucher
Browse files

drm/amdgpu/gfx9.4.3: remove redundant repeated nested 0 check



The repeated checks on grbm_soft_reset are unnecessary. Remove them.

Signed-off-by: default avatarEthan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 90e1d032
Loading
Loading
Loading
Loading
+11 −13
Original line number Diff line number Diff line
@@ -2461,7 +2461,6 @@ static int gfx_v9_4_3_soft_reset(struct amdgpu_ip_block *ip_block)
		/* Disable MEC parsing/prefetching */
		gfx_v9_4_3_xcc_cp_compute_enable(adev, false, 0);

		if (grbm_soft_reset) {
		tmp = RREG32_SOC15(GC, GET_INST(GC, 0), regGRBM_SOFT_RESET);
		tmp |= grbm_soft_reset;
		dev_info(adev->dev, "GRBM_SOFT_RESET=0x%08X\n", tmp);
@@ -2473,7 +2472,6 @@ static int gfx_v9_4_3_soft_reset(struct amdgpu_ip_block *ip_block)
		tmp &= ~grbm_soft_reset;
		WREG32_SOC15(GC, GET_INST(GC, 0), regGRBM_SOFT_RESET, tmp);
		tmp = RREG32_SOC15(GC, GET_INST(GC, 0), regGRBM_SOFT_RESET);
		}

		/* Wait a little for things to settle down */
		udelay(50);