<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb, branch v2021.07-rc4</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/usb?h=v2021.07-rc4</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb?h=v2021.07-rc4'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2021-05-16T17:01:45Z</updated>
<entry>
<title>usb: dwc3-generic: Disable host driver definition if gadget only</title>
<updated>2021-05-16T17:01:45Z</updated>
<author>
<name>Kunihiko Hayashi</name>
<email>hayashi.kunihiko@socionext.com</email>
</author>
<published>2021-05-12T14:11:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a5f9be1ed5a5e3a89478edd2f544e667046cd5ea'/>
<id>urn:sha1:a5f9be1ed5a5e3a89478edd2f544e667046cd5ea</id>
<content type='text'>
Even if only USB gadget is defined, dwc3 generic driver enables
a definition and probe/remove functions for host driver.

This enables the definition if USB_HOST is enabled only.

Signed-off-by: Kunihiko Hayashi &lt;hayashi.kunihiko@socionext.com&gt;
</content>
</entry>
<entry>
<title>usb: musb-new: Extend and move Allwinner quirk into Kconfig</title>
<updated>2021-05-16T17:01:45Z</updated>
<author>
<name>Andre Przywara</name>
<email>andre.przywara@arm.com</email>
</author>
<published>2021-05-05T12:51:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1027f28bd4be8c78eff1dd8d9261ebe01016943a'/>
<id>urn:sha1:1027f28bd4be8c78eff1dd8d9261ebe01016943a</id>
<content type='text'>
All newer Allwinner SoCs (since about 2013) miss the CONFIGDATA register
in their MUSB implementation, so they need a quirk to hardcode this.

Currently this quirk depends on listing the SoCs affected in musb_reg.h,
which means that this list needs to grow with every new chip.

Move the quirk feature into Kconfig, next to PIO_ONLY, and change the
default to y (for Allwinner builds), while listing the early
implementations as exceptions.

This fixes USB peripheral operation on some newer SoCs, which were not
explicitly listed before.

Tested on H6, H616, R40 (which were broken before), and also on the H5
and A20, for regressions.

Signed-off-by: Andre Przywara &lt;andre.przywara@arm.com&gt;
</content>
</entry>
<entry>
<title>usb: dwc3-meson-g12a: skip phy on -ENODATA aswell</title>
<updated>2021-05-14T15:41:12Z</updated>
<author>
<name>Neil Armstrong</name>
<email>narmstrong@baylibre.com</email>
</author>
<published>2021-05-05T08:38:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=60e531fabfaa6b844fa263279f752e868e6d555c'/>
<id>urn:sha1:60e531fabfaa6b844fa263279f752e868e6d555c</id>
<content type='text'>
If the PHY isn't specified in the DT, -ENODATA means it should be skipped,
handle it like -ENOENT.

With that, devices without USB3 supported can have USB working (Odroid-HC4).

Fixes: adb049abf7 ("usb: dwc3: Add Meson G12A USB Glue")
Signed-off-by: Neil Armstrong &lt;narmstrong@baylibre.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Limit PHY address parsing to !CONFIG_PHY</title>
<updated>2021-04-28T15:16:18Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-22T19:06:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=53396d67baef4acbcc257c5f2c702935b62cc858'/>
<id>urn:sha1:53396d67baef4acbcc257c5f2c702935b62cc858</id>
<content type='text'>
For systems which use generic PHY support and implement USB PHY driver,
the parsing of PHY properties is unnecessary, disable it.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Tested-by: Ying-Chun Liu (PaulLiu) &lt;paul.liu@linaro.org&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-hcd: Add IAA handshake for removing async QH</title>
<updated>2021-04-22T19:09:57Z</updated>
<author>
<name>Ye Li</name>
<email>ye.li@nxp.com</email>
</author>
<published>2021-03-09T03:26:57Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e1769da17ed339bc937d30c49176bc3664b261af'/>
<id>urn:sha1:e1769da17ed339bc937d30c49176bc3664b261af</id>
<content type='text'>
According to EHCI spec, software needs to do handshake with HC for
safely removing QH from async list. This handshake is implemented by
setting IAAD (Interrupt on Async Advance Doorbell) bit in USB_USBCMD
register and poll the IAA (Interrupt on Async Advance bit) in the
USB_USBSTS to ensure the HC has released all on-chip state that may
potentially reference one of the data structures just removed.

Current codes only check active status of the last QTD, but this can't
ensure the QH is released from HC. We can meet unrecoverable
"EHCI timed out on TD" errors when running UEFI SCT tests on USB disk.
The USB_ASYNCLISTADDR register is changed to a invalid address when the
issue happens. It is fixed after adding the IAA handshake.

Steps to reproduce the issue:
1. Build the UEFI SCT from https://github.com/tianocore/edk2-test
2. Build the EDK2 UEFI Shell from https://github.com/tianocore/edk2
3. Copy SCT files and Shell.efi to USB disk FAT partition
4. Load the Shell.efi from USB FAT, and run bootefi to execute it
5. After booting into Shell, enter the SCT directory and run "sct -a"
   to execute all tests.
6. Tests run about 1 hour and stop with many EHCI timeout errors like
   EHCI timed out on TD - token=0x801f8c80

Signed-off-by: Ye Li &lt;ye.li@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Add iMX8M support</title>
<updated>2021-04-18T02:29:36Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-02T12:07:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5e7e2a8e4f1e6d480f66822270bbf14c045aace0'/>
<id>urn:sha1:5e7e2a8e4f1e6d480f66822270bbf14c045aace0</id>
<content type='text'>
The iMX8M uses nop PHY, select PHY and NOP_PHY automatically.
Otherwise, the DM capable driver is now perfectly compatible.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Fix aarch64 build warnings</title>
<updated>2021-04-18T02:29:36Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-06T18:37:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f444f8986b4c74b63cbf421635387df120d3cb4f'/>
<id>urn:sha1:f444f8986b4c74b63cbf421635387df120d3cb4f</id>
<content type='text'>
Fix cast from pointer to integer of different size by casting the
pointer to uintptr_t instead of uint32_t, the former has correct
size on both 32bit and 64bit architectures.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Add fsl,imx7d-usb compatible string</title>
<updated>2021-04-18T02:29:36Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-02T11:07:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=e87015ff05d49b8e18367d05658cc092b5f94cc8'/>
<id>urn:sha1:e87015ff05d49b8e18367d05658cc092b5f94cc8</id>
<content type='text'>
Add new compatible string, used by some more up-to-date DTs.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Set default CONFIG_MXC_USB_PORTSC if not defined</title>
<updated>2021-04-18T02:29:36Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-10T14:03:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1aae8a35a202d4400adbb7780e1b384aa7aada37'/>
<id>urn:sha1:1aae8a35a202d4400adbb7780e1b384aa7aada37</id>
<content type='text'>
There is now multiple copies of CONFIG_MXC_USB_PORTSC in configs set to
PORT_PTS_UTMI | PORT_PTS_PTW, which is in fact the default register value
for MX6, MX7 and MX7ULP. Define the default value of CONFIG_MXC_USB_PORTSC
in the driver and use it in case CONFIG_MXC_USB_PORTSC is not defined in
config, to reduce the duplication.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
<entry>
<title>usb: ehci-mx6: Add generic EHCI PHY support</title>
<updated>2021-04-18T02:29:36Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2021-04-02T11:07:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=50d0146cb70abc76ac3c363cd0e30b8ea4e91d1d'/>
<id>urn:sha1:50d0146cb70abc76ac3c363cd0e30b8ea4e91d1d</id>
<content type='text'>
In case PHY support is enabled, use the generic EHCI PHY support
to start and stop the PHY.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Cc: Fabio Estevam &lt;festevam@gmail.com&gt;
Cc: Peng Fan &lt;peng.fan@nxp.com&gt;
Cc: Stefano Babic &lt;sbabic@denx.de&gt;
Cc: Ye Li &lt;ye.li@nxp.com&gt;
Cc: uboot-imx &lt;uboot-imx@nxp.com&gt;
</content>
</entry>
</feed>
