<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2017.05</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=v2017.05</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2017.05'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2017-04-14T14:44:16Z</updated>
<entry>
<title>usb: gadget: g_dnl: don't set iProduct nor iSerialNumber</title>
<updated>2017-04-14T14:44:16Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-22T15:12:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=207835b13feeae15db0555574d89352a4e5379a4'/>
<id>urn:sha1:207835b13feeae15db0555574d89352a4e5379a4</id>
<content type='text'>
Both these numbers are calculated in runtime and dynamically assigned
to the device descriptor during bind().

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: g_dnl: only set iSerialNumber if we have a serial#</title>
<updated>2017-04-14T14:44:16Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-22T15:12:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=842778a091047b0c868efa12229633959f711152'/>
<id>urn:sha1:842778a091047b0c868efa12229633959f711152</id>
<content type='text'>
We don't want to claim that we support a serial number string and
later return nothing. Because of that, if g_dnl_serial is an empty
string, let's skip setting iSerialNumber to a valid number.

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: g_dnl: hold maximum string descriptor</title>
<updated>2017-04-14T14:44:16Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-22T15:12:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=12d0b8f5f07b76d7447d60f7528d578233553909'/>
<id>urn:sha1:12d0b8f5f07b76d7447d60f7528d578233553909</id>
<content type='text'>
A USB String descriptor can be up to 255 characters long and it's not
NULL terminated according to the USB spec. This means our
MAX_STRING_SERIAL should be 256 (to cope with NULL terminator).

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_dfu: set serial number if serial# is valid</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-22T09:22:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9bf9e813584c23b677e92d8dca742ae9ef27fc94'/>
<id>urn:sha1:9bf9e813584c23b677e92d8dca742ae9ef27fc94</id>
<content type='text'>
With this patch, USB Command Verifier is happy with our DFU
implementation on Chapter 9 tests.

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: g_dnl: fix g_dnl_set_serialnumber()</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-22T09:22:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=949bf79e73a12961cf1310baf411647083f34b34'/>
<id>urn:sha1:949bf79e73a12961cf1310baf411647083f34b34</id>
<content type='text'>
instead of only copying if strlen(s) is less than 32 characters, let's
just copy at most 31 characters regardless of the size of
serial#. This will guarantee that we always have a serial number if
serial# environment variable is set to anything.

Note that without a proper serial number, USB Command Verifier fails
our test of Device Descriptor since we will claim to have a serial
number without really providing one when requested.

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_dfu: write req-&gt;actual bytes</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Felipe Balbi</name>
<email>felipe.balbi@linux.intel.com</email>
</author>
<published>2017-02-10T16:32:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=00e9d69629eb026a2ccc9e2526e365b1e796a14d'/>
<id>urn:sha1:00e9d69629eb026a2ccc9e2526e365b1e796a14d</id>
<content type='text'>
If last packet is short, we shouldn't write req-&gt;length bytes to
non-volatile media, we should write only what's available to us, which
is held in req-&gt;actual.

Signed-off-by: Felipe Balbi &lt;felipe.balbi@linux.intel.com&gt;
Signed-off-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dfu: add result for handle_getstatus()</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@st.com</email>
</author>
<published>2016-12-16T17:41:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d428776657154f57b89913ffb0c5a23cb5b595f7'/>
<id>urn:sha1:d428776657154f57b89913ffb0c5a23cb5b595f7</id>
<content type='text'>
harmonize result with other handle_XXX() functions: return int for size
remove the define RET_STAT_LEN : no more necessary

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@st.com&gt;
Signed-off-by: Patrick Delaunay &lt;patrick.delaunay73@gmail.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dfu: correct size for USB_REQ_DFU_GETSTATE result</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@st.com</email>
</author>
<published>2016-12-16T17:41:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f11bb2524541556682b83ee694829208b960b56c'/>
<id>urn:sha1:f11bb2524541556682b83ee694829208b960b56c</id>
<content type='text'>
return the correct size for DFU_GETSTATE result (1 byte in DFU 1.1 spec)
to avoid issue in USB protocol and the variable "value" is propagated
to req-&gt;lenght as all the in the other request with answer
- DFU_GETSTATUS
- DFU_DNLOAD
- DFU_UPLOAD
Then the buffer is correctly treated in USB driver

NB: it was the only request witch directly change "req-&gt;actual"

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@st.com&gt;
Signed-off-by: Patrick Delaunay &lt;patrick.delaunay73@gmail.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dfu: add functional descriptor in descriptor set</title>
<updated>2017-02-26T12:24:30Z</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@st.com</email>
</author>
<published>2016-12-08T17:10:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8987012fe5a8bc226d1b3f5187c152b8d85a2dcd'/>
<id>urn:sha1:8987012fe5a8bc226d1b3f5187c152b8d85a2dcd</id>
<content type='text'>
The "DFU descriptor set" must contain the "DFU functional descriptor"
but it is missing today in U-Boot code
(cf: DFU spec 1.1, chapter 4.2 DFU Mode Descriptor Set)
This patch only allocate buffer and copy DFU functional descriptor
after interfaces.

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@st.com&gt;
Signed-off-by: Patrick Delaunay &lt;patrick.delaunay73@gmail.com&gt;
</content>
</entry>
<entry>
<title>drivers: usb: gadget: ether: Fix compiler warning</title>
<updated>2017-01-17T09:26:46Z</updated>
<author>
<name>Lokesh Vutla</name>
<email>lokeshvutla@ti.com</email>
</author>
<published>2017-01-17T03:21:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=65c389d27902f6376bd057609b66b7339b219cf1'/>
<id>urn:sha1:65c389d27902f6376bd057609b66b7339b219cf1</id>
<content type='text'>
Latest gcc 6.2 compiler is throwing the below warning for am335x_baltos_defconfig
drivers/usb/gadget/ether.c:501:17: warning: 'mdlm_detail_desc' defined but not used [-Wunused-const-variable=]
 static const u8 mdlm_detail_desc[] = {

Guard mdlm_detail_desc with CONFIG_USB_ETH_SUBSET to avoid the warning

Reported-by: Dan Murphy &lt;dmurphy@ti.com&gt;
Signed-off-by: Lokesh Vutla &lt;lokeshvutla@ti.com&gt;
</content>
</entry>
</feed>
