<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2023.07</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=v2023.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2023.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2023-04-25T19:31:27Z</updated>
<entry>
<title>usb: gadget: f_mass_storage: Rework do_request_sense slightly</title>
<updated>2023-04-25T19:31:27Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2023-04-05T23:48:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=73b39a76e34a3b88a7a2c58588c9a5a604a51d90'/>
<id>urn:sha1:73b39a76e34a3b88a7a2c58588c9a5a604a51d90</id>
<content type='text'>
When building with clang, it notes that sdinfo may be unused
uninitialized in some cases. This appears to be true from reading the
code, and we can simply set the variable to zero to start with and be as
correct as before.

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: gadget: f_sdp: Add missing spl_board_prepare_for_boot() call</title>
<updated>2023-04-03T22:34:42Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2023-03-07T07:42:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7f2347088529693ee13b4ab7e7a27f5a1f617c1f'/>
<id>urn:sha1:7f2347088529693ee13b4ab7e7a27f5a1f617c1f</id>
<content type='text'>
The spl_board_prepare_for_boot() should be called before jump_to_image_no_args()
to perform board-specific deinitialization before jumping to the next stage.
This board-specific deinitialization can be very much anything, e.g. disable
dcache in case it was enabled, or such.

Add the missing spl_board_prepare_for_boot() call into f_sdp .

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: gadget: missing fallthrough in composite_setup()</title>
<updated>2023-04-03T22:33:32Z</updated>
<author>
<name>Heinrich Schuchardt</name>
<email>heinrich.schuchardt@canonical.com</email>
</author>
<published>2023-04-01T07:06:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=063359444c251163cf0e4159355bc545b486d01d'/>
<id>urn:sha1:063359444c251163cf0e4159355bc545b486d01d</id>
<content type='text'>
Add a missing fallthrough macro. This fixes a -Wimplicit-fallthrough
warning.

Signed-off-by: Heinrich Schuchardt &lt;heinrich.schuchardt@canonical.com&gt;
</content>
</entry>
<entry>
<title>ARM: tegra: provide default USB gadget setup</title>
<updated>2023-02-23T19:55:37Z</updated>
<author>
<name>Maxim Schwalm</name>
<email>maxim.schwalm@gmail.com</email>
</author>
<published>2023-02-14T17:35:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b1de4d7c6e14a78b6f321d205daa7846badb64ae'/>
<id>urn:sha1:b1de4d7c6e14a78b6f321d205daa7846badb64ae</id>
<content type='text'>
All Nvidia boards use the same manufacturer, vendor ID and product ID
for the gadgets. Make them the defaults to remove some boilerplate from
the defconfigs.

Inspired by commit e02687bda96c ("sunxi: provide default USB gadget
setup") which did the same for Allwinner boards.

Tested-by: Thierry Reding &lt;treding@nvidia.com&gt; # T30 and T124
Signed-off-by: Maxim Schwalm &lt;maxim.schwalm@gmail.com&gt;
Signed-off-by: Tom &lt;twarren@nvidia.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Fix typo in obj line</title>
<updated>2023-02-11T14:25:44Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2023-02-11T14:25:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ecff2bc4bd2687b280898c63eecfcc31d13cce22'/>
<id>urn:sha1:ecff2bc4bd2687b280898c63eecfcc31d13cce22</id>
<content type='text'>
When dropping the unused fotg210 gadget driver a leading 0 was
introduced to the next line, drop it.

Fixes: e9b4678bc78e ("usb: Drop unused fotg210 gadget")
Reported-by: Samuel Holland &lt;samuel@sholland.org&gt;
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>usb: Drop unused fotg210 gadget</title>
<updated>2023-02-07T19:33:50Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-02-01T20:20:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e9b4678bc78e627dac2a1e3ebe2b263b15bf6207'/>
<id>urn:sha1:e9b4678bc78e627dac2a1e3ebe2b263b15bf6207</id>
<content type='text'>
This is not used and appears to be associated with the faraday board which
has been removed. Drop the driver and Kconfig options.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>global: Finish CONFIG -&gt; CFG migration</title>
<updated>2023-01-20T17:27:24Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2023-01-10T16:19:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6e7df1d151a7a127caf3b62ff6dfc003fc2aefcd'/>
<id>urn:sha1:6e7df1d151a7a127caf3b62ff6dfc003fc2aefcd</id>
<content type='text'>
At this point, the remaining places where we have a symbol that is
defined as CONFIG_... are in fairly odd locations. While as much dead
code has been removed as possible, some of these locations are simply
less obvious at first. In other cases, this code is used, but was
defined in such a way as to have been missed by earlier checks.  Perform
a rename of all such remaining symbols to be CFG_... rather than
CONFIG_...

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>image: Move common image code to image_board and command</title>
<updated>2023-01-16T23:26:50Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2023-01-06T14:52:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=30f3333d8860fd97e131e24ad33a80f4d46e98b1'/>
<id>urn:sha1:30f3333d8860fd97e131e24ad33a80f4d46e98b1</id>
<content type='text'>
We should use the cmd/ directory for commands rather than for common code
used elsewhere in U-Boot. Move the common 'source' code into
image-board.c to achieve this.

The image_source_script() function needs to call run_command_list()  so
seems to belong better in the command library. Move and rename it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dwc2_udc_otg: implement pullup()</title>
<updated>2023-01-14T13:10:30Z</updated>
<author>
<name>Mattijs Korpershoek</name>
<email>mkorpershoek@baylibre.com</email>
</author>
<published>2023-01-11T08:19:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2383e8f4aec7a5087526d501478c4ba8235da2b4'/>
<id>urn:sha1:2383e8f4aec7a5087526d501478c4ba8235da2b4</id>
<content type='text'>
Pullup is used by the usb framework in order to do software-controlled
usb_gadget_connect() and usb_gadget_disconnect().

Implement pullup() for dwc2 using the SOFT_DISCONNECT bit in the dctl
register:
* when pullup is on, clear SOFT_DISCONNECT
* when pullup is off, set SOFT_DISCONNECT

This is especially useful when a gadget disconnection is initiated but
no board_usb_cleanup() is called.

Signed-off-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: fastboot: detach usb just before rebooting</title>
<updated>2023-01-14T13:10:30Z</updated>
<author>
<name>Dario Binacchi</name>
<email>dario.binacchi@amarulasolutions.com</email>
</author>
<published>2023-01-07T16:48:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=66b5847b30a94487b6a540736dc4b10422d71294'/>
<id>urn:sha1:66b5847b30a94487b6a540736dc4b10422d71294</id>
<content type='text'>
The patch fixes the following error when updating a BSH SMM S2 board:
3:72&gt;Start Cmd:FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize}
3:72&gt;Okay (0.023s)
3:72&gt;Start Cmd:FB: reboot
3:72&gt;Fail Bulk(R):LIBUSB_ERROR_IO(0s)

The "fastboot reboot" command detaches the USB when it still needs to be
used. So let's detach the USB just before the reset.

CC: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
Fixes: 5f7e01e9d5d800 ("usb: gadget: fastboot: detach usb on reboot commands")
Suggested-by: Michael Trimarchi &lt;michael@amarulasolutions.com&gt;
Co-developed-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
Signed-off-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
Signed-off-by: Dario Binacchi &lt;dario.binacchi@amarulasolutions.com&gt;
</content>
</entry>
</feed>
