<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2015.04</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2015.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2015.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2015-03-25T03:22:37Z</updated>
<entry>
<title>net: Add ethernet FCS length macro in net.h</title>
<updated>2015-03-25T03:22:37Z</updated>
<author>
<name>Bin Meng</name>
<email>bmeng.cn@gmail.com</email>
</author>
<published>2015-03-20T09:12:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a7c3d5e2a9f4d0feb1e21733434e6d29f5ac566b'/>
<id>urn:sha1:a7c3d5e2a9f4d0feb1e21733434e6d29f5ac566b</id>
<content type='text'>
Some ethernet drivers use their own version of ethernet FCS length
macro which is really common. We define ETH_FCS_LEN in net.h and
replace those custom versions in various places.

Signed-off-by: Bin Meng &lt;bmeng.cn@gmail.com&gt;
Acked-by: Joe Hershberger &lt;joe.hershberger@ni.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: fastboot: Set the Serial Number for Fastboot Gadget</title>
<updated>2015-02-25T16:47:02Z</updated>
<author>
<name>Dileep Katta</name>
<email>dileep.katta@linaro.org</email>
</author>
<published>2015-02-13T06:33:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=537cd072da9c350d6709785c85f83cae2ad53493'/>
<id>urn:sha1:537cd072da9c350d6709785c85f83cae2ad53493</id>
<content type='text'>
Configure the serial number using the serial# environment variable
during the fastboot bind.

This enables "fastboot devices" to return the serial number for
the attached devices.

Signed-off-by: Dileep Katta &lt;dileep.katta@linaro.org&gt;
Acked-by: Steve Rae &lt;srae@broadcom.com&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
<entry>
<title>fastboot: OUT transaction length must be aligned to wMaxPacketSize</title>
<updated>2015-02-25T16:47:02Z</updated>
<author>
<name>Dileep Katta</name>
<email>dileep.katta@linaro.org</email>
</author>
<published>2015-02-16T20:32:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9e4b510d40310bf46e09f4edd0a0b6356213df47'/>
<id>urn:sha1:9e4b510d40310bf46e09f4edd0a0b6356213df47</id>
<content type='text'>
OUT transactions must be aligned to wMaxPacketSize for each transfer,
or else transfer will not complete successfully. This patch modifies
rx_bytes_expected to return a transfer length that is aligned to
wMaxPacketSize.

Note that the value of wMaxPacketSize and ep-&gt;maxpacket may not be
the same value, and it is the value of wMaxPacketSize that should be
used for alignment. wMaxPacketSize is passed depending on the speed of
connection.

Signed-off-by: Dileep Katta &lt;dileep.katta@linaro.org&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: fastboot: Add fastboot erase</title>
<updated>2015-02-25T16:47:02Z</updated>
<author>
<name>Dileep Katta</name>
<email>dileep.katta@linaro.org</email>
</author>
<published>2015-02-17T13:18:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=897923819cda6f26fe8a5921c595871526ab6a9c'/>
<id>urn:sha1:897923819cda6f26fe8a5921c595871526ab6a9c</id>
<content type='text'>
Adds the fastboot erase functionality, to erase a partition
specified by name. The erase is performed based on erase group size,
to avoid erasing other partitions. The start address and the size
is aligned to the erase group size for this.

Currently only supports erasing from eMMC.

Signed-off-by: Dileep Katta &lt;dileep.katta@linaro.org&gt;
Reviewed-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
<entry>
<title>fastboot: add support for "oem format" command</title>
<updated>2015-02-25T16:47:02Z</updated>
<author>
<name>Rob Herring</name>
<email>robh@kernel.org</email>
</author>
<published>2015-01-26T21:49:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=372d7decfe972966c49b337f3d2888e09004dbe4'/>
<id>urn:sha1:372d7decfe972966c49b337f3d2888e09004dbe4</id>
<content type='text'>
Add "oem format" command to write partition table. This relies on the
env variable partitions to contain the list of partitions as required by
the gpt command.

Note that this does not erase any data other than the partition table.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Reviewed-by: Steve Rae &lt;srae@broadcom.com&gt;
</content>
</entry>
<entry>
<title>fastboot: add "fastboot oem" command support</title>
<updated>2015-02-25T16:47:02Z</updated>
<author>
<name>Michael Scott</name>
<email>michael.scott@linaro.org</email>
</author>
<published>2015-01-26T21:49:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=de1956202e24bc490787192b443a1a8e8048c83b'/>
<id>urn:sha1:de1956202e24bc490787192b443a1a8e8048c83b</id>
<content type='text'>
Add code stub to handle "fastboot oem __" command. As unlock is a common
fastboot command, distinguish that it is not implemented.

Signed-off-by: Michael Scott &lt;michael.scott@linaro.org&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Tested-by: Steve Rae &lt;srae@broadcom.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: pxa25x_udc: fix use-before-initialized bug</title>
<updated>2015-01-18T11:31:01Z</updated>
<author>
<name>Alex Sadovsky</name>
<email>nable.maininbox@googlemail.com</email>
</author>
<published>2015-01-08T17:51:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c0978a94aa4eab52e8c634ac0a43af4b411921e3'/>
<id>urn:sha1:c0978a94aa4eab52e8c634ac0a43af4b411921e3</id>
<content type='text'>
Fix use-before-initialized bug in pxa25x_udc driver.

Function usb_gadget_register_driver calls udc_disable,
and udc_disable calls pullup_off that uses dev-&gt;mach-&gt;udc_command.
But dev-&gt;mach is initialized in usb_gadget_register_driver after
calling udc_disable. This patch fixes the order of initialization.

Signed-off-by: Alex Sadovsky &lt;Nable.MainInbox@googlemail.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_dfu: Add get_alt function to pass the USB compliance test</title>
<updated>2015-01-18T11:31:00Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-01-09T13:54:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1fd81b7c23705eb46fd80d1eccb68fa8697cf348'/>
<id>urn:sha1:1fd81b7c23705eb46fd80d1eccb68fa8697cf348</id>
<content type='text'>
Without this function the USB compliance test (USB 2.0 Command Verifier) will
fail in the "Interface Descriptor Test" with this error message:

FAIL
(1.2.51) A successful GetInterface request must return the alternate setting
set by a prior call to SetInterface.

Lets add this function to read back the value so that the DFU device fully
passes the USB compliance test.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Roger Meier &lt;r.meier@siemens.com&gt;
Cc: Samuel Egli &lt;samuel.egli@siemens.com&gt;
Cc: Enrico Leto &lt;enrico.leto@siemens.com&gt;
Acked-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: gadget: composite: Fix NULL pointer crash in USB compliance test</title>
<updated>2015-01-18T11:31:00Z</updated>
<author>
<name>Stefan Roese</name>
<email>sr@denx.de</email>
</author>
<published>2015-01-09T13:54:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=87ed6b1067a8b8cf2bf3fd900080164cef8e0b77'/>
<id>urn:sha1:87ed6b1067a8b8cf2bf3fd900080164cef8e0b77</id>
<content type='text'>
On the DXR2 board (AM335x using MUSB) the USB compliance test suite
(USB 2.0 Command Verifier) will cause the board to crash and reset
upon the "BOS Descriptor Test - Addressed state". Here the output
from the DRX2 while running this test:

GADGET DRIVER: usb_dnl_dfu
musb-hdrc: peripheral reset irq lost!
composite_setup (776)
data abort
pc : [&lt;87f693ac&gt;]          lr : [&lt;87f6911c&gt;]
sp : 86f33a58  ip : 00000000     fp : 86f3bbac
r10: 00000f00  r9 : 86f33ef4     r8 : 86f37da8
r7 : 00000005  r6 : 86f33a90     r5 : 00000000  r4 : 86f37e30
r3 : 00000000  r2 : 00000000     r1 : 87f9c888  r0 : 00000016
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32
Resetting CPU ...

resetting ...

By adding the case statement for USB_DT_BOS and therefore not running
into the default case (jump to unkown label) this crash is fixed.

Signed-off-by: Stefan Roese &lt;sr@denx.de&gt;
Cc: Roger Meier &lt;r.meier@siemens.com&gt;
Cc: Samuel Egli &lt;samuel.egli@siemens.com&gt;
Cc: Enrico Leto &lt;enrico.leto@siemens.com&gt;
Acked-by: Heiko Schocher &lt;hs@denx.de&gt;
Cc: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>gadget: f_thor: check pointers before use in download_tail()</title>
<updated>2014-12-18T11:26:06Z</updated>
<author>
<name>Przemyslaw Marczak</name>
<email>p.marczak@samsung.com</email>
</author>
<published>2014-12-15T09:34:10Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=62a96d805f6f212250f5590d6afadf3645837f36'/>
<id>urn:sha1:62a96d805f6f212250f5590d6afadf3645837f36</id>
<content type='text'>
Some pointers in function download_tail() were not checked
before the use. This could possibly cause the data abort.
To avoid this, check if the pointers are not null is added.

Signed-off-by: Przemyslaw Marczak &lt;p.marczak@samsung.com&gt;
Tested-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
[TestHW: Exynos4412-Trats2]
</content>
</entry>
</feed>
