mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/amd/display: Fix for test crash due to power gating
[Why/How] Call power gating routine only if it is defined. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Sridevi Arvindekar <sarvinde@amd.com> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3451021a9e
commit
0bf6b216d4
|
|
@ -3131,7 +3131,8 @@ void dcn20_fpga_init_hw(struct dc *dc)
|
|||
res_pool->dccg->funcs->dccg_init(res_pool->dccg);
|
||||
|
||||
//Enable ability to power gate / don't force power on permanently
|
||||
hws->funcs.enable_power_gating_plane(hws, true);
|
||||
if (hws->funcs.enable_power_gating_plane)
|
||||
hws->funcs.enable_power_gating_plane(hws, true);
|
||||
|
||||
// Specific to FPGA dccg and registers
|
||||
REG_WRITE(RBBMIF_TIMEOUT_DIS, 0xFFFFFFFF);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user