android_kernel_xiaomi_sm8350/drivers/i2c/chips
Jean Delvare 4c9337da37 [PATCH] I2C: Centralize 24RF08 corruption prevention
The 24RF08 corruption would better be prevented at i2c-core level than
at chip driver level, for several reasons:
* The second quick write should happen as soon as possible after the
  first one, so as to limit the risk that another command is issued on
  the bus inbetween, causing the corruption.
* As a matter of fact, the protection code at driver level was reworked
  at least three times already, which proves how hard it is to get it
  right there, while it's straightforward at i2c-core level.
* It's easy to add a new driver that would need the protection, and
  forget to add it. This did happen already.
* As additional probing addresses can be passed to most i2c chip drivers
  as module parameters, virtually every i2c chip driver would need the
  protection if we want to be really safe.
* Why duplicate code when we can easily avoid it?

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-09-05 09:14:25 -07:00
..
ds1337.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
ds1374.c [PATCH] hwmon: hwmon vs i2c, second round (01/11) 2005-09-05 09:14:18 -07:00
eeprom.c [PATCH] I2C: Centralize 24RF08 corruption prevention 2005-09-05 09:14:25 -07:00
isp1301_omap.c [PATCH] I2C: Kill address ranges in non-sensors i2c chip drivers 2005-06-21 21:51:48 -07:00
Kconfig [PATCH] hwmon: hwmon vs i2c, second round (07/11) 2005-09-05 09:14:22 -07:00
m41t00.c [PATCH] hwmon: hwmon vs i2c, second round (01/11) 2005-09-05 09:14:18 -07:00
Makefile [PATCH] I2C: Move hwmon drivers (1/3) 2005-07-11 14:14:31 -07:00
max6875.c [PATCH] I2C: Centralize 24RF08 corruption prevention 2005-09-05 09:14:25 -07:00
pca9539.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
pcf8574.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
pcf8591.c [PATCH] hwmon: hwmon vs i2c, second round (06/11) 2005-09-05 09:14:21 -07:00
rtc8564.c [PATCH] hwmon: hwmon vs i2c, second round (01/11) 2005-09-05 09:14:18 -07:00
rtc8564.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tps65010.c [PATCH] I2C: minor TPS6501x cleanups 2005-07-11 14:10:36 -07:00