Thread (1 message) 1 message, 1 author, 2012-06-14

Re: [Patch v5 03/13] USB: notify phy when root hub port connect change

From: Alan Stern <hidden>
Date: 2012-06-14 14:11:00
Also in: linux-arm-kernel

On Thu, 14 Jun 2012, Richard Zhao wrote:
quoted
quoted
+	if (unlikely(hcd->phy && !hdev->level)) {
This is okay, but it's more common to test for root hubs with 
"!hdev->parent".
So it will be like:
if (unlikely(hcd->phy && !hdev->parent)) {
Yes.
And,
I didn't check (portchange & USB_PORT_STAT_C_CONNECTION), because if
the device is connected on boot, there'll be no USB_PORT_STAT_C_CONNECTION.
Is it acceptable?
Yes.  In fact the hub_port_debounce() routine turns off
USB_PORT_STAT_C_CONNECTION anyway.

Alan Stern



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help