All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num
@ 2021-10-29 15:05 Sean Anderson
  0 siblings, 0 replies; only message in thread
From: Sean Anderson @ 2021-10-29 15:05 UTC (permalink / raw)
  To: u-boot, Marek Vasut
  Cc: Andre Przywara, Jagan Teki, Maxime Ripard, Lukasz Majewski,
	Marek Szyprowski, Sean Anderson

This allows specifying partitions using more extended syntax. This is
particularly useful to access eMMC hardware partitions. For example,
this allows something like

	ums 0 mmc 0.0,0.1,0.2,0.3

to expose four LUNs for each of the four default eMMC hardware
partitions. Note that the comma syntax was already present, and this
syntax is already documented.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

Changes in v3:
- Fix example in commit message

Changes in v2:
- Reword commit message to include an example

 cmd/usb_mass_storage.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c
index 14fa7233c7..d4e619b842 100644
--- a/cmd/usb_mass_storage.c
+++ b/cmd/usb_mass_storage.c
@@ -74,8 +74,8 @@ static int ums_init(const char *devtype, const char *devnums_part_str)
 		if (!devnum_part_str)
 			break;
 
-		partnum = blk_get_device_part_str(devtype, devnum_part_str,
-					&block_dev, &info, 1);
+		partnum = part_get_info_by_dev_and_name_or_num(devtype, devnum_part_str,
+							       &block_dev, &info, 1);
 
 		if (partnum < 0)
 			goto cleanup;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-29 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-29 15:05 [PATCH v3] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num Sean Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.