Starting point of this series was that I had multiple EEPROMs on a board from which one had an alias "eeprom0" and the other ones didn't have aliases. the EEPROMs without aliases failed to register because they tried to register themselves as "eeprom0" as well.
While EEPROMs triggered this series it fixes a longstanding problem in barebox: It was possible to register two devices with the same name when one device was registered as "foo0", DEVICE_ID_SINGLE and another one as "foo", id = 0. Signed-off-by: Sascha Hauer <[email protected]> --- Sascha Hauer (4): driver: implement get_free_deviceid_from() nvmem: fix device name setting driver: fix device name clashes eeprom: at24: reserve EEPROM names which have an alias drivers/base/driver.c | 25 ++++++++++++++----------- drivers/eeprom/at24.c | 12 ++++++++---- drivers/nvmem/core.c | 22 +++++++++++++++------- include/driver.h | 7 ++++++- 4 files changed, 43 insertions(+), 23 deletions(-) --- base-commit: 500df27eb054f86ce232c5bb30c3a7ea8f771e61 change-id: 20251208-nvmem-eeprom-94b9b05b1c04 Best regards, -- Sascha Hauer <[email protected]>
