Revert "drm/amd/display: Don't return ddc result and read_bytes in same return value"
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 17:56:45 +0000 (12:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 19:35:46 +0000 (14:35 -0500)
commit5292221d6ddfed75e5b46cd42237a677094b99f3
tree09eb77a24092553119592facad325dec9171e205
parentdc81aab1be9fac2e11f31fe7538a50705eba08cf
Revert "drm/amd/display: Don't return ddc result and read_bytes in same return value"

This reverts commit 018d82e5f02ef3583411bcaa4e00c69786f46f19.

This breaks DDC in certain cases.  Revert for 4.18 and previous kernels.
For 4.19, this is fixed with the following more extensive patches:
drm/amd/display: Serialize is_dp_sink_present
drm/amd/display: Break out function to simply read aux reply
drm/amd/display: Return aux replies directly to DRM
drm/amd/display: Right shift AUX reply value sooner than later
drm/amd/display: Read AUX channel even if only status byte is returned

Link: https://lists.freedesktop.org/archives/amd-gfx/2018-July/023788.html
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c
drivers/gpu/drm/amd/display/dc/inc/dc_link_ddc.h