]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amd/powerplay: don't add invalid voltage.
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 5 Jul 2016 11:18:15 +0000 (19:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:24 +0000 (15:06 -0400)
commitb1814a1def0564a2a1d3be7fa5bf7243ff899a28
tree475fe063c8f004da0e87ce4e4a80aeb2a1aeacae
parentccdbb20a75e3e3917f327a185c1a45722b5d359f
drm/amd/powerplay: don't add invalid voltage.

if atomctrl_get_voltage_evv_on_sclk_ai returns
non zero (fail) in the expansion of the
PP_ASSERT_WITH_CODE macro the continue will
actually do nothing, So invalid voltage will be
added to ppbable.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c