i2c: smbus: Support up to 8 SPD EEPROMs
authorJean Delvare <jdelvare@suse.de>
Tue, 14 Nov 2023 14:13:28 +0000 (15:13 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 18 Jan 2024 20:10:42 +0000 (21:10 +0100)
commit13e3a512a29001cab68fe9a0c12be94e6d42a10c
tree12dd8a490091500b721b6ae196e81c7fd444caa8
parent92a85b7c6262f19c65a1c115cf15f411ba65a57c
i2c: smbus: Support up to 8 SPD EEPROMs

I originally restricted i2c_register_spd() to only support systems
with up to 4 memory slots, so that we can experiment with it on
a limited numbers of systems. It's been more than 3 years and it
seems to work just fine, so the time has come to lift this arbitrary
limitation.

The maximum number of memory slots which can be connected to a single
I2C segment is 8, so support that many SPD EEPROMs. Any system with
more than 8 memory slots would have either multiple SMBus channels
or SMBus multiplexing, so it would need dedicated care. We'll get to
that later as needed.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-smbus.c