Skip to content

Commit e8b19ff

Browse files
Brandon Syualexdeucher
authored andcommitted
drm/amd/display: modify init dc_power_state
[why] initialize the power state for dc use, but dc_set_power_state it not called at D3. It would cause can't recognize last power state [how] remove initialize the power state for dc use, it is not necessary. Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Brandon Syu <[email protected]> Signed-off-by: Roman Li <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 44063db commit e8b19ff

File tree

1 file changed

+0
-4
lines changed
  • drivers/gpu/drm/amd/display/dc/core

1 file changed

+0
-4
lines changed

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5379,13 +5379,9 @@ void dc_set_power_state(struct dc *dc, enum dc_acpi_cm_power_state power_state)
53795379
dc->vm_pa_config.valid) {
53805380
dc->hwss.init_sys_ctx(dc->hwseq, dc, &dc->vm_pa_config);
53815381
}
5382-
/*mark d0 last*/
5383-
dc->power_state = power_state;
53845382
break;
53855383
default:
53865384
ASSERT(dc->current_state->stream_count == 0);
5387-
/*mark d3 first*/
5388-
dc->power_state = power_state;
53895385
dc_dmub_srv_notify_fw_dc_power_state(dc->ctx->dmub_srv, power_state);
53905386

53915387
dc_state_destruct(dc->current_state);

0 commit comments

Comments
 (0)