Linux USB
 help / color / mirror / Atom feed
* ehci-omap unresponsive when used with external hub
@ 2023-12-12 14:58 Adam Ford
  2023-12-12 15:21 ` Andreas Kemnade
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2023-12-12 14:58 UTC (permalink / raw)
  To: Linux-OMAP; +Cc: USB list, stern, Greg Kroah-Hartman

I have been troubleshooting an issue with USB which appears to happen
with  AM3517, OMAP3530,  and DM3730 in which the USB doesn't detect
removal or connection of USB devices and interrupts stop occurring.

In every case, I have the OMAP3 EHCI connected to a USB3220
transceiver which is treated as configured in the device tree as
usb-nop-xceiv with reset-gpios configured to enable it.

When I connect and disconnect peripherals like thumb drives,
keyboards, mice, etc., directly to the USB port, the system seems to
behave as I would expect.  If I connect a hub with a device already
connected to it, the system recognizes the attached device

peripheral -> external hub -> transceiver -> omap3-ehci

If I disconnect the hub from the OMAP, it also sees the disconnection
and subsequent reconnection.

However, if I connect a hub with nothing attached to the hub, I get
the following message:

ehci-omap 48064800.ehci: suspend root hub

At this point, no disconnection or reconnection are ever recognized,
and no further interrupts are recorded on the ehci-omap from
/proc/interrupts.

If I pass "optargs usbcore.autosuspend=-1" to as a command line
parameter, the system works as expected.  I have been able to
replicate this issue with multiple external hubs, and I am beginning
to test this work-around with different hubs, but it seems like
disabling autosuspend is a hack.

I was wondering if there might be a better solution and/or suggestions
as to what needs to happen to poll the USB occasionally to see if
there are devices present.

Thanks

adam

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

* Re: ehci-omap unresponsive when used with external hub
  2023-12-12 14:58 ehci-omap unresponsive when used with external hub Adam Ford
@ 2023-12-12 15:21 ` Andreas Kemnade
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Kemnade @ 2023-12-12 15:21 UTC (permalink / raw)
  To: Adam Ford; +Cc: Linux-OMAP, USB list, stern, Greg Kroah-Hartman

On Tue, 12 Dec 2023 08:58:31 -0600
Adam Ford <aford173@gmail.com> wrote:

> I have been troubleshooting an issue with USB which appears to happen
> with  AM3517, OMAP3530,  and DM3730 in which the USB doesn't detect
> removal or connection of USB devices and interrupts stop occurring.
> 
> In every case, I have the OMAP3 EHCI connected to a USB3220
> transceiver which is treated as configured in the device tree as
> usb-nop-xceiv with reset-gpios configured to enable it.
> 
Also issues on GTA04 (DM3730):
The modem is behind it. There is an errata for that
combination.
Somehow reset/turning off does not work really. On GTA04
we have issues with current consumption during suspend.
including scenarios where there is a mismatch between state
of phy and what the omap side the state is.

What we do:
enable off-mode and force-reset of both sides.

and have this hack to solve at least the suspend issues:
https://lore.kernel.org/linux-omap/20180216171414.8097-1-andreas@kemnade.info/

Regards,
Andreas

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

end of thread, other threads:[~2023-12-12 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-12 14:58 ehci-omap unresponsive when used with external hub Adam Ford
2023-12-12 15:21 ` Andreas Kemnade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox