Commit 1833e68c4f05fe7b3e502135dbc0ffa09327850d
Committed by
Marek Vasut
1 parent
617e851e3a
Exists in
emb_lf_v2022.04
cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
cmd/usb_mass_storage.c
... | ... | @@ -74,8 +74,8 @@ |
74 | 74 | if (!devnum_part_str) |
75 | 75 | break; |
76 | 76 | |
77 | - partnum = blk_get_device_part_str(devtype, devnum_part_str, | |
78 | - &block_dev, &info, 1); | |
77 | + partnum = part_get_info_by_dev_and_name_or_num(devtype, devnum_part_str, | |
78 | + &block_dev, &info, 1); | |
79 | 79 | |
80 | 80 | if (partnum < 0) |
81 | 81 | goto cleanup; |