<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2022.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=v2022.04</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2022.04'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2022-03-14T11:31:12Z</updated>
<entry>
<title>usb: dwc2: handle return code of dev_read_size() in of to, plat function</title>
<updated>2022-03-14T11:31:12Z</updated>
<author>
<name>Wolfgang Grandegger</name>
<email>wg@aries-embedded.de</email>
</author>
<published>2022-03-14T08:32:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2addee35f2da178bf858403f2e2cb20a59df734f'/>
<id>urn:sha1:2addee35f2da178bf858403f2e2cb20a59df734f</id>
<content type='text'>
dev_read_size() returns -EINVAL (-22) if the property "g-tx-fifo-size"
does not exist. If that's the case, we now keep the default value of 0.

Signed-off-by: Wolfgang Grandegger &lt;wg@aries-embedded.de&gt;
</content>
</entry>
<entry>
<title>usb: gadget: ci: Avoid null pointer dereference</title>
<updated>2022-02-11T00:30:43Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2022-01-28T03:39:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1f54025d70c4c9e6ec8d82d8b69b0d66a7bbbdc1'/>
<id>urn:sha1:1f54025d70c4c9e6ec8d82d8b69b0d66a7bbbdc1</id>
<content type='text'>
The ci_req-&gt;hw_buf can be NULL, test whether it is and if so,
avoid accessing it. Else, the system may crash.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Peter Chen &lt;peter.chen@nxp.com&gt;
Cc: Li Jun &lt;jun.li@nxp.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
</content>
</entry>
<entry>
<title>dfu: handle short frame result of UPLOAD in state_dfu_idle</title>
<updated>2022-01-28T15:21:51Z</updated>
<author>
<name>Patrick Delaunay</name>
<email>patrick.delaunay@foss.st.com</email>
</author>
<published>2021-10-13T15:01:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=86b6a38863bebb70a65a53f93a1ffafc4a472169'/>
<id>urn:sha1:86b6a38863bebb70a65a53f93a1ffafc4a472169</id>
<content type='text'>
In DFU v1.1 specification [1] the DFU_UPLOAD (Short Frame)
is handled only in dfuUPLOADIDLE state:

- Figure A.1 Interface state transition diagram

- the state description in chapter A.2

A.2.3 State 2 dfuIDLE
  on Receipt of the DFU_UPLOAD request,and bitCanUpload = 1
  the Next State is dfuUPLOADIDLE

A.2.10 State 9 dfuUPLOAD-IDLE
  When the length of the data transferred by the device in response
  to a DFU_UPLOAD request is less than wLength. (Short frame)
  the Next State is dfuIDLE

In current code, when an UPLOAD is completely performed after the first
request (for example with wLength=200 and data read = 9), the DFU state
stay at dfuUPLOADIDLE until receiving a DFU_UPLOAD or a DFU_ABORT request
even it is unnecessary as the previous DFU_UPLOAD request already reached
the EOF.

This patch proposes to finish the DFU uploading (don't go to dfuUPLOADIDLE)
and completes the control-read operation (go to DFU_STATE_dfuIDLE) when
the first UPLOAD response has a short frame as an end of file (EOF)
indicator even if it is not explicitly allowed in the DFU specification
but this seems logical.

[1] https://www.usb.org/sites/default/files/DFU_1.1.pdf

Signed-off-by: Patrick Delaunay &lt;patrick.delaunay@foss.st.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Add CDC ACM function</title>
<updated>2022-01-26T22:23:17Z</updated>
<author>
<name>Loic Poulain</name>
<email>loic.poulain@linaro.org</email>
</author>
<published>2021-11-25T17:16:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6'/>
<id>urn:sha1:fc2b399ac03b91339a1cb1bfd4d1a9ca87fe95c6</id>
<content type='text'>
Add support for CDC ACM using the new UDC and gadget API. This protocol
can be used for serial over USB data transfer and is widely supported
by various OS (GNU/Linux, MS-Windows, OSX...). The usual purpose of
such link is to access device debug console and can be useful for
products not exposing regular UART to the user.

A default stdio device named 'usbacm' is created, and can be used
to redirect console to USB link over CDC ACM:

&gt; setenv stdin usbacm; setenv stdout usbacm

Signed-off-by: Loic Poulain &lt;loic.poulain@linaro.org&gt;
</content>
</entry>
<entry>
<title>SPL: Add struct spl_boot_device parameter into spl_parse_board_header()</title>
<updated>2022-01-20T10:35:29Z</updated>
<author>
<name>Pali Rohár</name>
<email>pali@kernel.org</email>
</author>
<published>2022-01-14T13:31:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2e0429bcc1a9cf2c3b4cc0e8af7199f031a3b8e9'/>
<id>urn:sha1:2e0429bcc1a9cf2c3b4cc0e8af7199f031a3b8e9</id>
<content type='text'>
Add parameter spl_boot_device to spl_parse_board_header(), which allows
the implementations to see from which device we are booting and do
boot-device-specific checks of the image header.

Signed-off-by: Pali Rohár &lt;pali@kernel.org&gt;
Signed-off-by: Marek Behún &lt;marek.behun@nic.cz&gt;
Reviewed-by: Stefan Roese &lt;sr@denx.de&gt;
</content>
</entry>
<entry>
<title>drivers/usb/gadget/dwc2_udc_otg.c: Fix spelling of "resetting".</title>
<updated>2022-01-13T12:57:50Z</updated>
<author>
<name>Vagrant Cascadian</name>
<email>vagrant@debian.org</email>
</author>
<published>2021-12-21T21:07:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5e7658925bc46c781bfa9faab8e15e6aac8c2808'/>
<id>urn:sha1:5e7658925bc46c781bfa9faab8e15e6aac8c2808</id>
<content type='text'>
</content>
</entry>
<entry>
<title>usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable</title>
<updated>2022-01-08T16:16:03Z</updated>
<author>
<name>Gary Bisson</name>
<email>gary.bisson@boundarydevices.com</email>
</author>
<published>2022-01-06T15:02:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8f758683a8077a13571f6ad57ccb4d7fe9e7b184'/>
<id>urn:sha1:8f758683a8077a13571f6ad57ccb4d7fe9e7b184</id>
<content type='text'>
Fastboot support has been broken on platforms using dwc2 controller
since the gadget gets its max packet size from it.
This patch is the equivalent of 723fd5668ff which fixed the same issue
but for the chipidea controller.

Fixes: 27c9141b111 ("usb: gadget: fastboot: use correct max packet size")

Signed-off-by: Gary Bisson &lt;gary.bisson@boundarydevices.com&gt;
Reviewed-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
Tested-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
</content>
</entry>
<entry>
<title>Merge tag 'u-boot-stm32-20211012' of https://source.denx.de/u-boot/custodians/u-boot-stm</title>
<updated>2021-10-12T16:01:00Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2021-10-12T16:01:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=776bf6a5457eb0c61c367d1ee7e45733a1c72ed6'/>
<id>urn:sha1:776bf6a5457eb0c61c367d1ee7e45733a1c72ed6</id>
<content type='text'>
- Disable ATAGS for STM32 MCU and MPU boards
- Disable bi_boot_params for STM32 MCU and MPU boards
- Update stm32-usbphyc node management
- Convert CONFIG_STM32_FLASH to Kconfig for STM32 MCU boards
- Convert some USB config flags to Kconfig for various boards
- Convert CONFIG_BOOTCOMMAND flag to Kconfig for STM32 F429 board
- Remove specific CONFIG_STV0991 flags
- Remove unused CONFIG_USER_LOWLEVEL_INIT flag
- Add ofdata_to_platdata() callback for stm32_spi driver
- Update for stm32f7_i2c driver
- Remove gpio_hog_probe_all() from STM32 MP1 board
- Fix bind command

Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Add bcdDevice for the DWC2 USB Gadget Controller</title>
<updated>2021-10-12T12:20:04Z</updated>
<author>
<name>Patrice Chotard</name>
<email>patrice.chotard@foss.st.com</email>
</author>
<published>2021-09-10T14:16:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9d591106dc22bae57a614a7b42ab9d52c6b921f8'/>
<id>urn:sha1:9d591106dc22bae57a614a7b42ab9d52c6b921f8</id>
<content type='text'>
Add an entry in usb_gadget_controller_number() for the DWC2
gadget controller. It is used to bind the USB Ethernet driver.

Signed-off-by: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
Reported-by: Herbert Poetzl &lt;herbert@13thfloor.at&gt;
Cc: Marek Vasut &lt;marex@denx.de&gt;
Cc: Herbert Poetzl &lt;herbert@13thfloor.at&gt;
</content>
</entry>
<entry>
<title>WS cleanup: remove SPACE(s) followed by TAB</title>
<updated>2021-09-30T13:08:16Z</updated>
<author>
<name>Wolfgang Denk</name>
<email>wd@denx.de</email>
</author>
<published>2021-09-27T15:42:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0cf207ec01cbacae47585fcc26591dd2296507d6'/>
<id>urn:sha1:0cf207ec01cbacae47585fcc26591dd2296507d6</id>
<content type='text'>
Signed-off-by: Wolfgang Denk &lt;wd@denx.de&gt;
</content>
</entry>
</feed>
