drm/amd/display: allow query ddc data over aux to be read only operation
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 8 Jun 2020 19:16:00 +0000 (15:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:26 +0000 (01:59 -0400)
commit26b4750d6cf84cb2b3f0a84c9b345e7b71886410
treee6407eefdcd685d40ed132af5c7559f2816fd9f4
parent8582aea20bc5de1fc4f2029e6cde604b2c755c0a
drm/amd/display: allow query ddc data over aux to be read only operation

[why]
Two issues:
1. Add read only operation support for query ddc data over aux.
2. Fix a bug where if read size is multiple of 16,
mot of the last read transaction will not be set to 0.

Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c