public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] i2c: i801: Call i2c_register_spd for muxed child segments
@ 2024-02-22 22:24 Heiner Kallweit
  2024-02-22 22:24 ` [PATCH RFC 1/2] i2c: smbus: Prepare i2c_register_spd for usage on muxed segments Heiner Kallweit
  2024-02-22 22:25 ` [PATCH RFC 2/2] i2c: i801: Call i2c_register_spd for muxed child segments Heiner Kallweit
  0 siblings, 2 replies; 11+ messages in thread
From: Heiner Kallweit @ 2024-02-22 22:24 UTC (permalink / raw)
  To: Wolfram Sang, Andi Shyti, Jean Delvare; +Cc: linux-i2c@vger.kernel.org

Once the gpio mux driver binds to the "i2c-mux-gpio" platform device,
this creates the i2c adapters for the muxed child segments.
We can use the bus notifier mechanism to check for creation of the
child i2d adapters, and call i2c_register_spd() for them. This allows
to detect all DIMM's on systems with more than 8 memory slots.

I tested that the events are properly recognized. However I don't have
hw with a muxed SMBUS, so I can't test the actual functionality.

Heiner Kallweit (2):
  i2c: smbus: Prepare i2c_register_spd for usage on muxed segments
  i2c: i801: Call i2c_register_spd for muxed child segments

 drivers/i2c/busses/i2c-i801.c | 23 +++++++++++++++++++++++
 drivers/i2c/i2c-smbus.c       | 18 +++++++++++-------
 2 files changed, 34 insertions(+), 7 deletions(-)

-- 
2.43.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-03-26 20:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-22 22:24 [PATCH RFC 0/2] i2c: i801: Call i2c_register_spd for muxed child segments Heiner Kallweit
2024-02-22 22:24 ` [PATCH RFC 1/2] i2c: smbus: Prepare i2c_register_spd for usage on muxed segments Heiner Kallweit
2024-02-26 10:32   ` Wolfram Sang
2024-03-02 20:21     ` Heiner Kallweit
2024-03-03 12:49       ` Wolfram Sang
2024-02-22 22:25 ` [PATCH RFC 2/2] i2c: i801: Call i2c_register_spd for muxed child segments Heiner Kallweit
2024-02-26 10:36   ` Wolfram Sang
2024-03-02 20:23     ` Heiner Kallweit
2024-03-25 12:34     ` Heiner Kallweit
2024-03-25 17:36       ` Wolfram Sang
2024-03-26 20:37         ` Heiner Kallweit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox