mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] driver name fixes
@ 2025-12-08 12:00 Sascha Hauer
  2025-12-08 12:00 ` [PATCH 1/4] driver: implement get_free_deviceid_from() Sascha Hauer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sascha Hauer @ 2025-12-08 12:00 UTC (permalink / raw)
  To: BAREBOX

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 <s.hauer@pengutronix.de>
---
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 <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2025-12-10  7:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-08 12:00 [PATCH 0/4] driver name fixes Sascha Hauer
2025-12-08 12:00 ` [PATCH 1/4] driver: implement get_free_deviceid_from() Sascha Hauer
2025-12-08 12:00 ` [PATCH 2/4] nvmem: fix device name setting Sascha Hauer
2025-12-08 12:00 ` [PATCH 3/4] driver: fix device name clashes Sascha Hauer
2025-12-08 12:00 ` [PATCH 4/4] eeprom: at24: reserve EEPROM names which have an alias Sascha Hauer
2025-12-10  7:09 ` [PATCH 0/4] driver name fixes Sascha Hauer

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