Re: [RFC 06/15] xhci: Setup array of USB 2.0 and USB 3.0 ports.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 30, 2010 at 11:06:21AM -0500, Alan Stern wrote:
> On Mon, 29 Nov 2010, Sarah Sharp wrote:
> > @@ -1234,6 +1252,14 @@ struct xhci_hcd {
> >  	u32			suspended_ports[8];	/* which ports are
> >  							   suspended */
> >  	unsigned long		resume_done[MAX_HC_PORTS];
> > +	/* Is each xHCI roothub port a USB 3.0, USB 2.0, or USB 1.1 port? */
> 
> This comment is unclear; the port_array field doesn't answer the
> question asked in the comment.  Furthermore, none of the ports can be
> USB 1.1 -- they all have to be USB-2 or USB-3.

Ok, on closer look at this, the comment is correct.  Each port_array
element is taken from the Major Revision field in the Extended
Capabilities, so it can be 0x1, 0x2, or 0x3.  If the port shows up twice
in the Extended Capabilities registers (it could happen, although it
should be caught by the USB-IF compliance tests), then that element is
set to -1 and the port is ignored.  Probably the port should be
disabled, but the code doesn't do that.

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux