U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] dm: Duplicate uclass name fix and alias improvements
@ 2024-07-31 13:42 Zixun LI
  2024-07-31 13:42 ` [RFC PATCH 1/4] dm: core: Add a way to specify an alt name for alias sequence numbering Zixun LI
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Zixun LI @ 2024-07-31 13:42 UTC (permalink / raw)
  To: Simon Glass, Tom Rini, Lukasz Majewski, Mattijs Korpershoek,
	Marek Vasut
  Cc: Zixun LI, u-boot

Patch 1 is a tentative fix for duplicate uclass name issue met in
https://lists.denx.de/pipermail/u-boot/2024-July/560189.html

The idea is to use orignal class name only for sequence alias to keep this
alias function working and rename the class something else.

Patch 2 and 3 make "dm tree", "bind" and "unbind" commands to take care
of alias sequence numbering. As the alias sequence numbering is more
meanful than uclass index.

Patch 4 is the actual fix for usb gadet class.

There are some situations where uclass index and device sequence number
are misused which is not convered by this patch set, for example in
drivers/net/sandbox.c, uclass_get_device() is used which is based on
uclass index, while in the comments it says "index - The alias index
(also DM seq number)"

Zixun LI (4):
  dm: core: Add a way to specify an alt name for alias sequence
    numbering
  dm: core: Show device sequence instead in dm_dump_tree()
  cmd: bind: Use device sequence instead for driver bind/unbind
  usb: gadget: udc: Fix duplicate uclass name

 cmd/bind.c                          |  4 ++--
 drivers/core/device.c               |  3 ++-
 drivers/core/dump.c                 |  2 +-
 drivers/core/read.c                 |  7 ++++++-
 drivers/core/uclass.c               | 11 +++++++++--
 drivers/usb/gadget/udc/udc-uclass.c |  3 ++-
 include/dm/read.h                   |  9 ++++++++-
 include/dm/uclass.h                 |  2 ++
 8 files changed, 32 insertions(+), 9 deletions(-)

--
2.45.2


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

end of thread, other threads:[~2024-08-02  5:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 13:42 [RFC PATCH 0/4] dm: Duplicate uclass name fix and alias improvements Zixun LI
2024-07-31 13:42 ` [RFC PATCH 1/4] dm: core: Add a way to specify an alt name for alias sequence numbering Zixun LI
2024-07-31 13:42 ` [RFC PATCH 2/4] dm: core: Show device sequence instead in dm_dump_tree() Zixun LI
2024-08-01 14:42   ` Simon Glass
2024-07-31 13:42 ` [RFC PATCH 3/4] cmd: bind: Use device sequence instead for driver bind/unbind Zixun LI
2024-08-01 14:42   ` Simon Glass
2024-07-31 13:42 ` [RFC PATCH 4/4] usb: gadget: udc: Fix duplicate uclass name Zixun LI
2024-08-01 14:42 ` [RFC PATCH 0/4] dm: Duplicate uclass name fix and alias improvements Simon Glass
2024-08-01 18:37   ` Zixun LI
2024-08-01 19:28     ` Simon Glass

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