[PATCH v2 0/2] i2c: designware: should not wait for enable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This fixes the regression on older Designware I2C adapters while also
keeping Ben's Bay Trail board working by using the fix identified in
the previous thread: adding a dummy read of IC_ENABLE_STATUS register.

Compared to previous series, I've opted to drop the IRQ enable/disable
patch as I'm not sure it's useful.

Patch 1 fixes the regression, and patch 2 is a refactoring that may be
useful to reduce cognitive load for future readers of the driver.

Cc: Ben Gardner <gardner.ben@xxxxxxxxx>
Cc: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
Cc: Wolfram Sang <wsa@xxxxxxxxxxxxx>

Alexander Monakov (2):
  i2c: designware: fix poll-after-enable regression
  i2c: designware: refactor low-level enable/disable

 drivers/i2c/busses/i2c-designware-common.c | 20 +++++++++-----------
 drivers/i2c/busses/i2c-designware-core.h   | 13 +++++++++++--
 drivers/i2c/busses/i2c-designware-master.c | 11 +++++++----
 drivers/i2c/busses/i2c-designware-slave.c  |  6 +++---
 4 files changed, 30 insertions(+), 20 deletions(-)

-- 
2.11.0




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux