i2c: i801: Call i2c_register_spd for muxed child segments
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 26 Mar 2024 20:42:44 +0000 (21:42 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:35:40 +0000 (00:35 +0200)
commit893fef0bc6aaedd482b7592d18d9b17682c1f94a
treedf1d183730cacd1173f7e2288aaf2950df4eb5d4
parent5bffbda7ad5465605d12ed7432dc844cfff625c9
i2c: i801: Call i2c_register_spd for muxed child segments

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 i2c adapters, and call i2c_register_spd() for them. This allows
to detect all DIMM's on systems with more than 8 memory slots.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-i801.c