]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/dp_mst: Fix all mstb marked as not probed after suspend/resume
authorWayne Lin <Wayne.Lin@amd.com>
Wed, 26 Jun 2024 08:48:23 +0000 (16:48 +0800)
committerLyude Paul <lyude@redhat.com>
Wed, 3 Jul 2024 13:55:27 +0000 (09:55 -0400)
commitd63d81094d208abb20fc444514b2d9ec2f4b7c4e
tree67d76e2b45d6a1750bbfe73ccf6d51e112fbc66d
parent80f4e62730a91572b7fdc657f7bb747e107ae308
drm/dp_mst: Fix all mstb marked as not probed after suspend/resume

[Why]
After supend/resume, with topology unchanged, observe that
link_address_sent of all mstb are marked as false even the topology probing
is done without any error.

It is caused by wrongly also include "ret == 0" case as a probing failure
case.

[How]
Remove inappropriate checking conditions.

Cc: Lyude Paul <lyude@redhat.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: stable@vger.kernel.org
Fixes: 37dfdc55ffeb ("drm/dp_mst: Cleanup drm_dp_send_link_address() a bit")
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240626084825.878565-2-Wayne.Lin@amd.com
drivers/gpu/drm/display/drm_dp_mst_topology.c