Files
linux/drivers
Simon Ser ad06d6bed5 drm/dp_mst: fix drm_dp_dpcd_read return value checks
[ Upstream commit 2ac6cdd581 ]

drm_dp_dpcd_read returns the number of bytes read. The previous code
would print garbage on DPCD error, and would exit with on error on
success.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: cb897542c6 ("drm/dp_mst: Fix W=1 warnings")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/473500/
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:25:24 +02:00
..
2022-10-26 13:25:09 +02:00
2022-10-26 13:25:22 +02:00
2021-03-04 11:38:21 +01:00
2022-05-09 09:04:56 +02:00
2022-08-31 17:15:23 +02:00
2021-11-18 14:03:51 +01:00
2022-10-26 13:25:24 +02:00
2022-04-13 21:00:55 +02:00
2022-08-25 11:38:14 +02:00