linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Leo (Sunpeng) Li edf6ffe4f4 drm/amd/display: Read AUX channel even if only status byte is returned
[Why]
get_channel_status() can return 0 in returned_bytes, and report a
successful operation result. This is because it prunes the first status
byte out. This was preventing read_channel_reply() from being called
(due to the faulty condition), and consequently preventing the AUX
reply status from being set.

[How]
Fix the conditional so that it accounts for when get_channel_status()
returns 0 bytes read.

[Fixes]
Fixes possible edid read failures during S3 resume, where we are now
relying on DRM's DP AUX handling. This was an regression introduced by:

    Author: Harry Wentland <harry.wentland@amd.com>
        drm/amd/display: Return aux replies directly to DRM

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-07-13 14:50:52 -05:00
..
amdgpu_dm drm/amd/display: Add YCbCr420 only support for HDMI 4K@60 2018-07-13 14:50:29 -05:00
dc drm/amd/display: Read AUX channel even if only status byte is returned 2018-07-13 14:50:52 -05:00
include drm/amd/display: read DP sink and DP branch hardware and firmware revision from DPCD 2018-07-13 14:48:49 -05:00
modules drm/amd/display: Use 2-factor allocator calls 2018-07-05 16:40:03 -05:00
Kconfig drm/amdgpu/display: enable CONFIG_DRM_AMD_DC_DCN1_0 by default 2018-06-15 12:20:30 -05:00
Makefile drm/amd: Remove inclusion of non-existing include directories 2018-02-26 23:09:38 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00