drm/amd/display: fix i2c wtire mot incorrect issue
authorLewis Huang <Lewis.Huang@amd.com>
Tue, 27 Aug 2019 09:03:41 +0000 (17:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 13:06:54 +0000 (08:06 -0500)
commit0594ffee9011e7e32b7ad92fe6d815e8727281f8
tree5f5177f6a0edb047e592fc2ebbf930408993e50c
parent616f5b65f1c02d3d6ae370644670d14c57de2fd8
drm/amd/display: fix i2c wtire mot incorrect issue

[Why]
I2C write command always send mot = true will cause sink state incorrect.

[How]
1. Remove default i2c write mot = true.
2. Deciding mot flag by is_end_of_payload flag.

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c