diff options
author | Lewis Huang <Lewis.Huang@amd.com> | 2019-08-07 18:05:49 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-09-13 17:54:46 -0500 |
commit | 4fd99f67f3c639b3c70365902fe2224cfb8d681f (patch) | |
tree | f34fba88fdc8649f17ecf7045d17376345756fef /mm/page_alloc.c | |
parent | 8ac64f0af5ffc8ae8cf0c43415c147781733f30b (diff) | |
download | linux-4fd99f67f3c639b3c70365902fe2224cfb8d681f.tar.bz2 |
drm/amd/display: refine i2c over aux
[Why]
When user mode use i2c over aux through ADL or DDI, the function
dal_ddc_service_query_ddc_data will be called. There are two issues.
1. When read/write length > 16byte, current always return false because
the DEFAULT_AUX_MAX_DATA_SIZE != length.
2. When usermode only need to read data through i2c, driver will write
mot = true at the same address and cause i2c sink confused. Therefore
the following read command will get garbage.
[How]
1. Add function dal_dcc_submit_aux_command to handle length > 16 byte.
2. Check read size and write size when query ddc data.
Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions