diff options
author | Imre Deak <imre.deak@intel.com> | 2022-12-14 20:42:58 +0200 |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2022-12-16 16:55:29 +0200 |
commit | 33f960e23c29d113fe3193e0bdc19ac4f3776f20 (patch) | |
tree | dbc7795c33693fcc10c5c2381c9e61a50b970294 /drivers/gpu/drm/omapdrm/dss/dsi.c | |
parent | 1241aedb6b5c7a5a8ad73e5eb3a41cfe18a3e00e (diff) |
drm/display/dp_mst: Fix payload addition on a disconnected sink
If an MST stream is enabled on a disconnected sink, the payload for the
stream is not created and the MST manager's payload count/next start VC
slot is not updated. Since the payload's start VC slot may still contain
a valid value (!= -1) the subsequent disabling of such a stream could
cause an incorrect decrease of the payload count/next start VC slot in
drm_dp_remove_payload() and hence later payload additions will fail.
Fix the above by marking the payload as invalid in the above case, so
that it's skipped during payload removal. While at it add a debug print
for this case.
Cc: Lyude Paul <lyude@redhat.com>
Cc: <stable@vger.kernel.org> # v6.1+
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221214184258.2869417-3-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dsi.c')
0 files changed, 0 insertions, 0 deletions