linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] implement workaround for ERR051725
@ 2025-06-14 12:56 Xu Yang
  2025-06-14 12:56 ` [PATCH 1/3] usb: chipidea: udc: add CI_HDRC_CONTROLLER_PULLUP_EVENT event Xu Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Xu Yang @ 2025-06-14 12:56 UTC (permalink / raw)
  To: peter.chen, gregkh, shawnguo, s.hauer, kernel, festevam
  Cc: jun.li, linux-usb, imx, linux-arm-kernel

Currently, the USB2.0 phy on some imx7d compliant Soc has below issue.

ERR051725:
USB: With the USB controller configured as device mode, Clearing the RS
bit of USBCMD register fails to cause USB device to be detached

Description
1. USB controller working as high speed device mode with USB gadget
   function enabled
2. Cable plugged into USB host
3. Use case is software-controlled detach from USB device side

The expected result is device side terminations removed, increase in USB
signal amplitude, USB host detect device is detached. But the issue is
that the clear RS bit of USBCMD register cannot cause device detach event.

Workaround
  - Use the below steps to detach from the host:
      write USBCMD.RS = 0b
      write CTRL2[7:6] = 01b
      write CTRL2[8] = 1b
  - As CTRL2[8] is set at detach case, so attach the steps should add clear
    CTRL2[8]:
      write USBCMD.RS = 1b
      write CTRL2[8] = 0b

This will add workaround for it.

Xu Yang (3):
  usb: chipidea: udc: add CI_HDRC_CONTROLLER_PULLUP_EVENT event
  usb: chipidea: imx: add imx_usbmisc_pullup() hook
  usb: chipidea: imx: implement workaround for ERR051725

 drivers/usb/chipidea/ci_hdrc_imx.c |  5 ++++
 drivers/usb/chipidea/ci_hdrc_imx.h |  1 +
 drivers/usb/chipidea/udc.c         |  5 ++++
 drivers/usb/chipidea/usbmisc_imx.c | 39 ++++++++++++++++++++++++++++++
 include/linux/usb/chipidea.h       |  1 +
 5 files changed, 51 insertions(+)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-06-18 12:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-14 12:56 [PATCH 0/3] implement workaround for ERR051725 Xu Yang
2025-06-14 12:56 ` [PATCH 1/3] usb: chipidea: udc: add CI_HDRC_CONTROLLER_PULLUP_EVENT event Xu Yang
2025-06-18 10:35   ` Peter Chen (CIX)
2025-06-14 12:56 ` [PATCH 2/3] usb: chipidea: imx: add imx_usbmisc_pullup() hook Xu Yang
2025-06-18 10:36   ` Peter Chen (CIX)
2025-06-14 12:56 ` [PATCH 3/3] usb: chipidea: imx: implement workaround for ERR051725 Xu Yang
2025-06-18 10:40   ` Peter Chen (CIX)
2025-06-17  8:19 ` [PATCH 0/3] " Peter Chen (CIX)
2025-06-18  6:06   ` Xu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).