Thread (18 messages) 18 messages, 4 authors, 2021-07-21

Re: [PATCH] usb: host: ohci-at91: suspend/resume ports after/before OHCI accesses

From: Alan Stern <stern@rowland.harvard.edu>
Date: 2021-06-23 16:41:52
Also in: linux-arm-kernel, lkml

On Wed, Jun 23, 2021 at 02:33:14PM +0000, Claudiu.Beznea@microchip.com wrote:
On 23.06.2021 17:19, Alan Stern wrote:
quoted
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

On Wed, Jun 23, 2021 at 02:09:16PM +0000, Claudiu.Beznea@microchip.com wrote:
quoted
On 23.06.2021 16:59, Alan Stern wrote:
quoted
One thing you might consider changing: The name of the
ohci_at91_port_suspend routine is misleading.  It doesn't really
handle suspending the port; instead it handles the clocks that drive
the entire OHCI controller.  Right?
It does both as far as I can tell at the moment.
But the name suggests that it only handles suspending a port.  That's
misleading.

And the way it is used in the SetPortFeature(USB_PORT_FEAT_SUSPEND)
case in ohci_at91_hub_control is just plain wrong.  It won't merely
suspend a single port; it will disable the entire OHCI controller.
Agree with all the above!
Are there any systems beside the SAMA7G5 and others you tested which 
might be affected by this patch?  Do they all work pretty much the 
same way?  (I want to make sure no others will be adversely affected 
by this change.)

Alan Stern
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help