]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: add i2c_hw_Status check to make sure as HW I2c in use
authorDerek Lai <Derek.Lai@amd.com>
Wed, 22 May 2019 06:49:23 +0000 (14:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:49:38 +0000 (12:49 -0500)
commitad792524feb3734b628137ee8a01b6d4f4f47d23
tree2c3eb4d619126cfe916f5d2ab2217829b862cab0
parentf83eba23e4ebc47ff6f4b604d429f5001f32326e
drm/amd/display: add i2c_hw_Status check to make sure as HW I2c in use

1. Add i2c_hw_Status check to make sure when HW i2c is in use.
2. Don't reset HW engine in is_hw_busy() and instead do this in
process_transaction() because SW i2c does not check if hw i2c is in use

Signed-off-by: Derek Lai <Derek.Lai@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>
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.h