Commit a3199eba authored by Kenneth Feng's avatar Kenneth Feng Committed by Alex Deucher
Browse files

drm/amd/pm: always allow ih interrupt from fw



always allow ih interrupt from fw on smu v14 based on
the interface requirement

Signed-off-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: default avatarYang Wang <kevinyang.wang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ef5ccaa
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -1949,16 +1949,6 @@ static int smu_v14_0_allow_ih_interrupt(struct smu_context *smu)
				    NULL);
}

static int smu_v14_0_process_pending_interrupt(struct smu_context *smu)
{
	int ret = 0;

	if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_ACDC_BIT))
		ret = smu_v14_0_allow_ih_interrupt(smu);

	return ret;
}

int smu_v14_0_enable_thermal_alert(struct smu_context *smu)
{
	int ret = 0;
@@ -1970,7 +1960,7 @@ int smu_v14_0_enable_thermal_alert(struct smu_context *smu)
	if (ret)
		return ret;

	return smu_v14_0_process_pending_interrupt(smu);
	return smu_v14_0_allow_ih_interrupt(smu);
}

int smu_v14_0_disable_thermal_alert(struct smu_context *smu)