<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm63xx/u-boot/include/usb_mass_storage.h, branch master</title>
<subtitle>Broadcom-s U-Boot</subtitle>
<id>https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/'/>
<updated>2018-05-07T13:34:12Z</updated>
<entry>
<title>SPDX: Convert all of our single license tags to Linux Kernel style</title>
<updated>2018-05-07T13:34:12Z</updated>
<author>
<name>Tom Rini</name>
</author>
<published>2018-05-06T21:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=83d290c56fab2d38cd1ab4c4cc7099559c1d5046'/>
<id>urn:sha1:83d290c56fab2d38cd1ab4c4cc7099559c1d5046</id>
<content type='text'>
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from.  So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry.  Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.

In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.

This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents.  There's also a few places where I found we did not have a tag
and have introduced one.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>dm: Drop the block_dev_desc_t typedef</title>
<updated>2016-03-14T21:34:50Z</updated>
<author>
<name>Simon Glass</name>
</author>
<published>2016-02-29T22:25:34Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=4101f6879256720b30df712089a3df18565f9203'/>
<id>urn:sha1:4101f6879256720b30df712089a3df18565f9203</id>
<content type='text'>
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 &lt;sjg@chromium.org&gt;
Reviewed-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Tested-by: Stephen Warren &lt;swarren@nvidia.com&gt;
</content>
</entry>
<entry>
<title>ums: support multiple LUNs at once</title>
<updated>2016-01-14T02:05:19Z</updated>
<author>
<name>Stephen Warren</name>
</author>
<published>2015-12-07T18:38:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=02585eb3b5cba572d69bda1ae0864bdc770a0303'/>
<id>urn:sha1:02585eb3b5cba572d69bda1ae0864bdc770a0303</id>
<content type='text'>
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 &lt;swarren@nvidia.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>ums: move IO support code to common location</title>
<updated>2014-05-08T08:38:29Z</updated>
<author>
<name>Stephen Warren</name>
</author>
<published>2014-05-05T16:40:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=abfe8afe88d6d8219602659f44981411e1daeb1d'/>
<id>urn:sha1:abfe8afe88d6d8219602659f44981411e1daeb1d</id>
<content type='text'>
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 &lt;l.majewski@samsung.com&gt;
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Acked-by: Przemyslaw Marczak &lt;p.marczak@samsung.com&gt;
</content>
</entry>
<entry>
<title>ums: remove UMS_{NUM,START}_SECTORS + UMS_START_SECTOR</title>
<updated>2014-05-08T08:38:29Z</updated>
<author>
<name>Stephen Warren</name>
</author>
<published>2014-05-05T16:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=c2474d9c718dea4f26067e85d356644a3aed26c2'/>
<id>urn:sha1:c2474d9c718dea4f26067e85d356644a3aed26c2</id>
<content type='text'>
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 &lt;l.majewski@samsung.com&gt;
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Acked-by: Przemyslaw Marczak &lt;p.marczak@samsung.com&gt;
</content>
</entry>
<entry>
<title>ums: support block devices not MMC devices</title>
<updated>2014-05-08T08:38:29Z</updated>
<author>
<name>Stephen Warren</name>
</author>
<published>2014-05-05T16:40:11Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=ce19d974018273c8f69d98b7139e7fef822cc02a'/>
<id>urn:sha1:ce19d974018273c8f69d98b7139e7fef822cc02a</id>
<content type='text'>
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 &lt;l.majewski@samsung.com&gt;
Signed-off-by: Stephen Warren &lt;swarren@nvidia.com&gt;
Acked-by: Przemyslaw Marczak &lt;p.marczak@samsung.com&gt;
</content>
</entry>
<entry>
<title>USB: gadget: added a saner gadget downloader registration API</title>
<updated>2014-05-05T06:21:47Z</updated>
<author>
<name>Mateusz Zalega</name>
</author>
<published>2014-04-28T19:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=c4d0e856047f2689278ffea63a562c4f22a35ee3'/>
<id>urn:sha1:c4d0e856047f2689278ffea63a562c4f22a35ee3</id>
<content type='text'>
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 &lt;m.zalega@samsung.com&gt;
Acked-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Acked-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: ums: wait for usb cable connection before enter ums mode</title>
<updated>2014-01-13T11:29:12Z</updated>
<author>
<name>Przemyslaw Marczak</name>
</author>
<published>2014-01-07T14:08:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=3603e31db54ddba820b7a7b9c7659e272f8c65de'/>
<id>urn:sha1:3603e31db54ddba820b7a7b9c7659e272f8c65de</id>
<content type='text'>
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 &lt;p.marczak@samsung.com&gt;
</content>
</entry>
<entry>
<title>usb: ums: fix disk capacity miscalculation and code cleanup</title>
<updated>2013-11-08T19:46:19Z</updated>
<author>
<name>Przemyslaw Marczak</name>
</author>
<published>2013-10-23T12:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=0697f206dfbbb5821fbf03283dce0b96515167cf'/>
<id>urn:sha1:0697f206dfbbb5821fbf03283dce0b96515167cf</id>
<content type='text'>
This patch prevents:
- ums disk capacity miscalculation because of integer overflow

Changes 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 driver

Signed-off-by: Przemyslaw Marczak &lt;p.marczak@samsung.com&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: ums: code refactoring to improve reusability on other boards.</title>
<updated>2013-11-08T19:46:19Z</updated>
<author>
<name>Przemyslaw Marczak</name>
</author>
<published>2013-10-23T12:30:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/bcm63xx/u-boot/commit/?id=93c813b3ac4b23df891992f93252c59231dec388'/>
<id>urn:sha1:93c813b3ac4b23df891992f93252c59231dec388</id>
<content type='text'>
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 them

common 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.h

cmd_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 string

Changes 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 &lt;p.marczak@samsung.com&gt;
Cc: Marek Vasut &lt;marek.vasut@gmail.com&gt;
</content>
</entry>
</feed>
