OSDN Git Service

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)
commitf09220041851d585a26063ff13a0cd1d2afc0629
tree2c3eb4d619126cfe916f5d2ab2217829b862cab0
parent0bfb01ce90c69825ddd8d84d77df11d47d263fd3
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