<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2017.03</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.03</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2017.03'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2017-02-26T12:24:30Z</updated>
<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>
<entry>
<title>usb: dwc2-otg: remove unused variable</title>
<updated>2017-01-17T09:26:21Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2016-12-14T05:30:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=59ef20303a54305b978453d5cc88f9aea2486021'/>
<id>urn:sha1:59ef20303a54305b978453d5cc88f9aea2486021</id>
<content type='text'>
GCC 6.1 complains about this.

drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc'
defined but not used [-Wunused-const-variable=]
 static const char driver_desc[] = DRIVER_DESC;
                   ^~~~~~~~~~~

Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>drivers: usb: gadget: ether/rndis: convert driver to adopt device driver model</title>
<updated>2017-01-09T18:14:54Z</updated>
<author>
<name>Mugunthan V N</name>
<email>mugunthanvnm@ti.com</email>
</author>
<published>2016-11-18T05:39:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d4a3755368ca3d99f0a2b58ced8f8ddd42a80822'/>
<id>urn:sha1:d4a3755368ca3d99f0a2b58ced8f8ddd42a80822</id>
<content type='text'>
Adopt usb ether gadget and rndis driver to adopt driver model

Signed-off-by: Mugunthan V N &lt;mugunthanvnm@ti.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: remove unused shortname variable</title>
<updated>2016-12-04T18:55:03Z</updated>
<author>
<name>Andre Przywara</name>
<email>andre.przywara@arm.com</email>
</author>
<published>2016-11-16T00:50:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a7747affae98636f5dd18401538513056771343e'/>
<id>urn:sha1:a7747affae98636f5dd18401538513056771343e</id>
<content type='text'>
The shortname variable isn't referenced anywhere in the code, so just
remove it.

Pointed out by a GCC 6.2 default warning option.

Signed-off-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
Acked-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
</content>
</entry>
</feed>
