[PATCH v5 0/6] i2c: Host Notify / i801 fixes

From: Benjamin Tissoires
Date: Thu Oct 13 2016 - 08:11:22 EST

Hi Wolfram and Dmitry,

5th revision of the series, hopefully this time it will be OK.

The changes were requested by Dmitry: now, SMBus Host Notify is transparent
for clients drivers. The IRQ is attributed if the adapter has the capability
and if nobody claimed an IRQ before. That means that adding an I2C device
through sysfs works, and we don't need to do anything in the client drivers
besides regular IRQ handling.


Benjamin Tissoires (6):
i2c: i801: store and restore the SLVCMD register at load and unload
i2c: i801: minor formatting issues
i2c: i801: use BIT() macro for bits definition
i2c: i801: use the BIT() macro for FEATURES_* also
i2c: i801: remove SMBNTFDDAT reads as they always seem to return 0
i2c: use an IRQ to report Host Notify events, not alert

Documentation/i2c/smbus-protocol | 12 ++--
drivers/i2c/Kconfig | 1 +
drivers/i2c/busses/i2c-i801.c | 121 +++++++++++++++++++--------------------
drivers/i2c/i2c-core.c | 113 ++++++++++++++++++++++++++++++++++++
drivers/i2c/i2c-smbus.c | 102 ---------------------------------
include/linux/i2c-smbus.h | 27 ---------
include/linux/i2c.h | 4 ++
7 files changed, 185 insertions(+), 195 deletions(-)