linux/drivers/misc/eeprom
Heiner Kallweit 431c03095d eeprom: ee1004: Add support for multiple i2c busses
There are systems with more than 8 memory slots where the i2c bus for
SPD is multiplexed. i2c_register_spd() isn't used yet on such systems,
but it's planned. So we need to extend ee1004 accordingly.
With this extension a maximum of 8 i2c busses is supported.

I don't have such a system for testing, therefore I just verified
that the driver still works on a system with a single i2c bus.

For the sake of simplicity the extension uses the existing global
mutex to protect access on all busses. This could be improved,
but we support 8 busses only, and SPD data is small and rarely
accessed, so it shouldn't be a problem.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/f1a216a8-e77c-49f2-8838-561349b30ab8@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-07 11:17:15 +09:00
..
at24.c eeprom: at24: add ST M24C64-D Additional Write lockable page support 2023-10-16 08:49:15 +02:00
at25.c eeprom: at25: Convert to use fwnode_device_is_compatible() 2023-01-20 12:05:01 +01:00
digsy_mtc_eeprom.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ee1004.c eeprom: ee1004: Add support for multiple i2c busses 2023-12-07 11:17:15 +09:00
eeprom_93cx6.c misc: eeprom: eeprom_93cx6: Repair function arg descriptions 2020-06-29 18:45:52 +02:00
eeprom_93xx46.c spi: make remove callback a void function 2022-02-09 13:00:45 +00:00
idt_89hpesx.c eeprom: idt_89hpesx: replace open-coded kmemdup_nul 2023-10-05 11:09:37 +02:00
Kconfig eeprom: Remove deprecated legacy eeprom driver 2023-10-05 11:09:40 +02:00
Makefile eeprom: Remove deprecated legacy eeprom driver 2023-10-05 11:09:40 +02:00
max6875.c misc: Switch i2c drivers back to use .probe() 2023-05-29 15:04:52 +01:00