public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC 0/7] efi_loader: move device-path node generation to DM
@ 2023-03-26 17:27 Heinrich Schuchardt
  2023-03-26 17:27 ` [RFC 1/7] dm: add get_dp_node() to struct uclass_driver Heinrich Schuchardt
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Heinrich Schuchardt @ 2023-03-26 17:27 UTC (permalink / raw)
  To: Simon Glass, Ilias Apalodimas, Marek Vasut, Peng Fan,
	Jaehoon Chung, Patrick Delaunay, Patrice Chotard, Michal Suchanek,
	AKASHI Takahiro, u-boot
  Cc: Heinrich Schuchardt

UEFI device-paths are used in the EFI world to depict the parent-child
relationship between devices. No two device can have the same device-path.
Currently we fail to generate unique devices-paths.

The nodes in UEFI device paths should match the devices on the path
to the DM root node.

I have started drafting a solution. Several block device classes still need
to be handled (IDE, NVMe, EFI, VirtIO). Also handling of PCI addresses is
missing. But this series contains enough to see the direction of
development.

Heinrich Schuchardt (7):
  dm: add get_dp_node() to struct uclass_driver
  dm: implement uclass_get_dp_node()
  dm: implement get_dp_node for block devices
  dm: implement get_dp_node for USB hub devices
  dm: implement get_dp_node for USB mass storage devices
  dm: implement get_dp_node for MMC devices
  efi_loader: use uclass_get_dp_node

 common/usb_hub.c                 |  33 ++++
 common/usb_storage.c             |  33 ++++
 drivers/block/blk-uclass.c       |  56 ++++++
 drivers/core/uclass.c            |  26 +++
 drivers/mmc/mmc-uclass.c         |  25 +++
 include/dm/uclass.h              |  13 ++
 include/efi_loader.h             |   7 +
 lib/efi_loader/efi_device_path.c | 325 +++----------------------------
 8 files changed, 221 insertions(+), 297 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-03-27 19:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-26 17:27 [RFC 0/7] efi_loader: move device-path node generation to DM Heinrich Schuchardt
2023-03-26 17:27 ` [RFC 1/7] dm: add get_dp_node() to struct uclass_driver Heinrich Schuchardt
2023-03-27  4:00   ` Simon Glass
2023-03-27  6:44     ` Ilias Apalodimas
2023-03-27  6:48     ` Heinrich Schuchardt
2023-03-27  8:24       ` Simon Glass
2023-03-27  9:41         ` Heinrich Schuchardt
2023-03-27 19:03           ` Simon Glass
2023-03-26 17:27 ` [RFC 2/7] dm: implement uclass_get_dp_node() Heinrich Schuchardt
2023-03-27  4:00   ` Simon Glass
2023-03-26 17:27 ` [RFC 3/7] dm: implement get_dp_node for block devices Heinrich Schuchardt
2023-03-27  4:00   ` Simon Glass
2023-03-27  6:13     ` Heinrich Schuchardt
2023-03-27  8:24       ` Simon Glass
2023-03-27  9:31         ` Heinrich Schuchardt
2023-03-27 19:02           ` Simon Glass
2023-03-26 17:27 ` [RFC 4/7] dm: implement get_dp_node for USB hub devices Heinrich Schuchardt
2023-03-26 17:27 ` [RFC 5/7] dm: implement get_dp_node for USB mass storage devices Heinrich Schuchardt
2023-03-26 17:27 ` [RFC 6/7] dm: implement get_dp_node for MMC devices Heinrich Schuchardt
2023-03-26 17:27 ` [RFC 7/7] efi_loader: use uclass_get_dp_node Heinrich Schuchardt
2023-03-27  4:00   ` Simon Glass

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