Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a866d38 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amd/powerplay: propagate errors in phm_get_voltage_evv_on_sclk

parent f20024d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -711,7 +711,7 @@ int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type,
	int ret = 0;

	if (hwmgr->chip_id < CHIP_POLARIS10) {
		atomctrl_get_voltage_evv_on_sclk(hwmgr, voltage_type, sclk, id, voltage);
		ret = atomctrl_get_voltage_evv_on_sclk(hwmgr, voltage_type, sclk, id, voltage);
		if (*voltage >= 2000 || *voltage == 0)
			*voltage = 1150;
	} else {