i2c: smbus: introduce Write Disable-aware SPD instantiating functions
authorYo-Jung (Leo) Lin <leo.lin@canonical.com>
Wed, 30 Apr 2025 11:26:16 +0000 (19:26 +0800)
committerAndi Shyti <andi@smida.it>
Mon, 19 May 2025 20:23:57 +0000 (22:23 +0200)
commit4d6d35d3417dcab14a9b1b9771c3cd62e8ed442b
tree87add26ea46ebd42f1b6900ca87d9389ad153a8a
parent8b284979f7fb2f1acfd88a6b96c8863c410eb27f
i2c: smbus: introduce Write Disable-aware SPD instantiating functions

Some SMBus controllers may restrict writes to addresses where SPD sensors
may reside. This may lead to some SPD sensors not functioning correctly,
and might need extra handling. Introduce new SPD-instantiating functions
that are aware of this, and use them instead.

Signed-off-by: Yo-Jung Lin (Leo) <leo.lin@canonical.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250430-for-upstream-i801-spd5118-no-instantiate-v2-1-2f54d91ae2c7@canonical.com
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-i801.c
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/i2c-smbus.c
include/linux/i2c-smbus.h