11 Feb, 2019
1 commit
-
The usb mass storage (f_mass_storage.c) uses fixed usb index 0,
this causes problem while CDNS3 USB controller index is 1.
Modify the API of fsg to pass the controller index.Signed-off-by: Ye Li
Reviewed-by: Jun Li
15 Mar, 2016
1 commit
-
Use 'struct' instead of a typdef. Also since 'struct block_dev_desc' is long
and causes 80-column violations, rename it to struct blk_desc.Signed-off-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Stephen Warren
14 Jan, 2016
1 commit
-
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
Reviewed-by: Tom Rini
08 May, 2014
3 commits
-
There's nothing Samsung-/board-specfic about the implementation of
ums_init(). Move the code into cmd_usb_mass_storage.c, so that it can
be shared by any user of that command.Cc: Lukasz Majewski
Signed-off-by: Stephen Warren
Acked-by: Przemyslaw Marczak -
These values aren't set anywhere at present, and hence have no effect.
The concept of a single global offset/number of sectors to expose through
USB Mass Storage doesn't even make sense in the face of multiple storage
devices. Remove these defines to simplify the code.Cc: Lukasz Majewski
Signed-off-by: Stephen Warren
Acked-by: Przemyslaw Marczak -
The USB Mass Storage function could equally well support a SATA device
as support an MMC device. Update struct ums to contain a block device
descriptor, not an MMC device descriptor.Cc: Lukasz Majewski
Signed-off-by: Stephen Warren
Acked-by: Przemyslaw Marczak
05 May, 2014
1 commit
-
Preprocessor definitions and hardcoded implementation selection in
g_dnl core were replaced by a linker list made of (usb_function_name,
bind_callback) pairs.Signed-off-by: Mateusz Zalega
Acked-by: Lukasz Majewski
Acked-by: Marek Vasut
13 Jan, 2014
1 commit
-
Before this change ums mode can not be entered when device
was using the same usb port for usb/uart communication.
Switching USB cable from UART to USB always causes ums exit.Signed-off-by: Przemyslaw Marczak
09 Nov, 2013
2 commits
-
This patch prevents:
- ums disk capacity miscalculation because of integer overflowChanges v2:
- Prevents passing zero size disk capacity to ums gadget driver
- Change function ums_get_capacity() to ums_disk_init() and do ums disk
initialization before gadget init
- Remove unnecessary code from mass storage driverSigned-off-by: Przemyslaw Marczak
Cc: Marek Vasut -
This patch introduces some cleanups to ums code. Changes:
ums common:
- introduce UMS_START_SECTOR and UMS_NUM_SECTORS as defined in
usb_mass_storage.h both default values as 0 if board config
doesn't define themcommon cleanup changes:
- change name of struct "ums_board_info" to "ums"
- "ums_device" fields are moved to struct ums and "dev_num" is removed
- change function name: board_ums_init to ums_init
- remove "extern" prefixes from usb_mass_storage.hcmd_usb_mass_storage:
- change error() to printf() if need to print info message
- change return values to command_ret_t type at ums command code
- add command usage stringChanges v2:
ums common:
- always returns number of read/write sectors
- coding style clean-up
ums gadget:
- calculate amount of read/write from device returned value.Signed-off-by: Przemyslaw Marczak
Cc: Marek Vasut
21 Oct, 2013
1 commit
-
This commit unifies board-specific USB initialization implementations
under one symbol (usb_board_init), declaration of which is available in
usb.h.New API allows selective initialization of USB controllers whenever needed.
Signed-off-by: Mateusz Zalega
Signed-off-by: Kyungmin Park
Reviewed-by: Lukasz Majewski
Cc: Marek Vasut
Cc: Lukasz Majewski
24 Sep, 2013
1 commit
-
The mass storage composite function is now compiled in only when
CONFIG_USB_GADGET_MASS_STORAGE is defined.
Such change provides binary size reduction for boards which use USB
download gadget (like am335x_evm) with DFU, but don't use UMS.For example at am335x_evm board reduction is more than 2KiB for
text and around 120B for data.Signed-off-by: Lukasz Majewski
Cc: Marek Vasut
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
19 Mar, 2013
1 commit
-
This patch adds the USB Mass Storage Gadget to u-boot
New command called "ums" is implemented to provide access
to on-device embedded persistent memory.USB Mass Storage is supposed to work on top of the USB
Gadget frameworkSigned-off-by: Lukasz Majewski
Signed-off-by: Piotr Wilczek
Signed-off-by: Kyungmin Park
CC: Marek Vasut