]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5262252e1de99244fb0ed24fae7d76810dbf75a5
tree09eb77a24092553119592facad325dec9171e205
parent729d40ca2eb4a5029ff1bf1546d9b5945b1a8584
Revert "drm/amd/display: Don't return ddc result and read_bytes in same return value"

This reverts commit 6a3e425e7f3224074f259b2cb7ebaccac8e43ae9.

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