ums: support multiple LUNs at once
authorStephen Warren <swarren@nvidia.com>
Mon, 7 Dec 2015 18:38:50 +0000 (11:38 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jan 2016 02:05:19 +0000 (21:05 -0500)
commit02585eb3b5cba572d69bda1ae0864bdc770a0303
tree4ae3ca1352901deef93ebeb81b9bd63b699606be
parent873cc1d7775ed5de07e6722c7ff423080c2e8f71
ums: support multiple LUNs at once

Extend the ums command to accept a list of block devices. Each of these
will be exported as a separate LUN. An example use-case would be:

ums 0 mmc 0,0.1,0.2

... which would export LUNs for eMMC 0's user data, boot0, and boot1 HW
partitions. This is useful since it allows the host access to everything
on the eMMC without having to somehow stop the ums command from executing
and restart it with different parameters.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/cmd_usb_mass_storage.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/storage_common.c
include/usb_mass_storage.h