All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num
@ 2021-07-08 17:14 Sean Anderson
  2021-07-08 17:14 ` [PATCH 2/4] usb: f_mass_storage: Check bh->state in sleep_thread Sean Anderson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Sean Anderson @ 2021-07-08 17:14 UTC (permalink / raw)
  To: u-boot, Lukasz Majewski
  Cc: Maxime Ripard, Jun Li, Andre Przywara, Jagan Teki, Marek Vasut,
	Marek Szyprowski, Ye Li, Peng Fan, Bryan O'Donoghue,
	Sean Anderson

This allows specifying partitions using more extended syntax. This is
particularly useful to access eMMC hardware partitions.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---
This patch is independent of the others in this series and may be
applied separately.

 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] 6+ messages in thread

end of thread, other threads:[~2021-07-08 17:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 17:14 [PATCH 1/4] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num Sean Anderson
2021-07-08 17:14 ` [PATCH 2/4] usb: f_mass_storage: Check bh->state in sleep_thread Sean Anderson
2021-07-08 17:14 ` [PATCH 3/4] usb: f_mass_storage: Drop wakeup_needed Sean Anderson
2021-07-08 17:14 ` [PATCH 4/4] usb: f_mass_storage: Stop after the host deconfigures us Sean Anderson
2021-07-08 17:23 ` [PATCH 1/4] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num Marek Vasut
2021-07-08 17:26   ` 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.