mbox series

[RFC,0/3] i2c: Enable calling i2c_register_spd() on muxed bus segments

Message ID bdb10285-203b-4f82-ac03-f63c8ec44fe2@gmail.com
Headers show
Series i2c: Enable calling i2c_register_spd() on muxed bus segments | expand

Message

Heiner Kallweit Dec. 22, 2023, 3:52 p.m. UTC
This series is based on a discussion with Jean on how to get rid of
class-based device probing on muxed segments of a i801-controlled
smbus. i2c_register_spd() could be further optimized for the case that
it's called on a muxed segment, for now go with the minimum of needed
changes.

I don't have such a system with a muxed smbus, therefore the series is
compile-tested only.

Link: https://lore.kernel.org/all/a9ab1201-58fe-4b86-81fc-b58ce0b3cd2c@gmail.com/T/

Heiner Kallweit (3):
  i2c: smbus: Prepare i2c_register_spd for use on muxed segments
  i2c: mux: gpio: Allow to call i2c_register_spd on a muxed segment
  i2c: i801: Call i2c_register_spd() on muxed bus segments

 drivers/i2c/busses/i2c-i801.c              |  1 +
 drivers/i2c/i2c-smbus.c                    | 18 +++++++++++-------
 drivers/i2c/muxes/i2c-mux-gpio.c           |  6 ++++++
 include/linux/platform_data/i2c-mux-gpio.h |  2 ++
 4 files changed, 20 insertions(+), 7 deletions(-)