mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-02 16:22:41 -04:00
drm/i915/psr: Clear pr_dpcd as well on disconnect
Currently we are leaving pr_dpcd containing Panel Replay capability DPCD registers as it is on disconnect. Clear it as well on disconnect. v2: add FIXME Signed-off-by: Jouni Högander <jouni.hogander@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20251204104733.1106145-6-jouni.hogander@intel.com
This commit is contained in:
@@ -6048,7 +6048,15 @@ intel_dp_detect(struct drm_connector *_connector,
|
||||
|
||||
if (status == connector_status_disconnected) {
|
||||
intel_dp_test_reset(intel_dp);
|
||||
/*
|
||||
* FIXME: Resetting these caps here cause
|
||||
* state computation fail if the connector need to be
|
||||
* modeset after sink disconnect. Move resetting them
|
||||
* to where new sink is connected.
|
||||
*/
|
||||
memset(connector->dp.dsc_dpcd, 0, sizeof(connector->dp.dsc_dpcd));
|
||||
memset(connector->dp.panel_replay_caps.dpcd, 0,
|
||||
sizeof(connector->dp.panel_replay_caps.dpcd));
|
||||
intel_dp->psr.sink_panel_replay_support = false;
|
||||
intel_dp->psr.sink_panel_replay_su_support = false;
|
||||
intel_dp->psr.sink_panel_replay_dsc_support =
|
||||
|
||||
Reference in New Issue
Block a user