mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
drm/amd/powerplay: propagate errors in phm_get_voltage_evv_on_sclk
Missing for one case. bugs: https://bugzilla.kernel.org/show_bug.cgi?id=185681 https://bugs.freedesktop.org/show_bug.cgi?id=98357 Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
f20024d8ba
commit
0a866d38ef
@ -711,7 +711,7 @@ int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type,
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (hwmgr->chip_id < CHIP_POLARIS10) {
|
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)
|
if (*voltage >= 2000 || *voltage == 0)
|
||||||
*voltage = 1150;
|
*voltage = 1150;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user