drm/amd/pm: fix uninitialized variable warnings for vangogh_ppt
authorTim Huang <Tim.Huang@amd.com>
Sun, 28 Apr 2024 07:42:03 +0000 (15:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 May 2024 19:17:04 +0000 (15:17 -0400)
commitb2871de6961d24d421839fbfa4aa3008ec9170d5
treed87df6d96617f7df1f203be6f62f74548ce952c2
parent56fd1f8868d8042aeb801a27a33c1ea3e05af33a
drm/amd/pm: fix uninitialized variable warnings for vangogh_ppt

1. Fix a issue that using uninitialized mask to get the ultimate frequency.
2. Check return of smu_cmn_send_smc_msg_with_param to avoid using
uninitialized variable residency.

Signed-off-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c