Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Alan Stern
On Mon, 25 Jan 2016, Peter Chen wrote: > Alan, do you know which physical number is larger for > the same port, HS or SS port? Is it spec defined or vendor defined? > I haven't found related information at xHCI spec. I believe it is defined by the vendor. In fact, I think vendors are allowed to

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Peter Chen
On Mon, Jan 25, 2016 at 09:50:53AM +0100, Arnd Bergmann wrote: > On Monday 25 January 2016 11:57:37 Peter Chen wrote: > > >> > > > >> > hub@3 { /* same external hub, highspeed mode */ > > >> > compatible = "usb2109,0812.591", > > >> >

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-25 Thread Arnd Bergmann
On Monday 25 January 2016 11:57:37 Peter Chen wrote: > >> > > >> > hub@3 { /* same external hub, highspeed mode */ > >> > compatible = "usb2109,0812.591", > >> > "usb2109,0812", > >> > "usb2109,class9

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-24 Thread Peter Chen
On Fri, Jan 22, 2016 at 6:18 PM, Arnd Bergmann wrote: > On Friday 22 January 2016 14:59:01 Peter Chen wrote: >> On Thu, Jan 21, 2016 at 11:24:21PM +0100, Arnd Bergmann wrote: >> > On Thursday 21 January 2016 10:21:15 Alan Stern wrote: >> > > On Thu, 21 Jan 2016, Arnd Bergmann wrote: >> > > > On Th

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-24 Thread Peter Chen
On Fri, Jan 22, 2016 at 11:55 PM, Alan Stern wrote: > On Fri, 22 Jan 2016, Arnd Bergmann wrote: > >> > > hub@3 { /* same external hub, highspeed mode */ >> > > compatible = "usb2109,0812.591", >> > >"usb2109,0812", >> > >

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-22 Thread Alan Stern
On Fri, 22 Jan 2016, Arnd Bergmann wrote: > We just have to decide what to do for non-hub devices that the OF > specification calls "combined nodes" (device class 0, one configuration, > one interface) and that, like hubs do not have one of_node per interface > plus one per device, but only one no

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-22 Thread Arnd Bergmann
On Friday 22 January 2016 10:55:01 Alan Stern wrote: > On Fri, 22 Jan 2016, Arnd Bergmann wrote: > > > > > hub@3 { /* same external hub, highspeed mode */ > > > > compatible = "usb2109,0812.591", > > > > "usb2109,0812",

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-22 Thread Alan Stern
On Fri, 22 Jan 2016, Arnd Bergmann wrote: > > > hub@3 { /* same external hub, highspeed mode */ > > > compatible = "usb2109,0812.591", > > >"usb2109,0812", > > >"usb2109,class9.0.1", > > >

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-22 Thread Arnd Bergmann
On Friday 22 January 2016 14:59:01 Peter Chen wrote: > On Thu, Jan 21, 2016 at 11:24:21PM +0100, Arnd Bergmann wrote: > > On Thursday 21 January 2016 10:21:15 Alan Stern wrote: > > > On Thu, 21 Jan 2016, Arnd Bergmann wrote: > > > > On Thursday 21 January 2016 17:48:32 Peter Chen wrote: > >

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Peter Chen
On Thu, Jan 21, 2016 at 11:24:21PM +0100, Arnd Bergmann wrote: > On Thursday 21 January 2016 10:21:15 Alan Stern wrote: > > On Thu, 21 Jan 2016, Arnd Bergmann wrote: > > > > > On Thursday 21 January 2016 17:48:32 Peter Chen wrote: > > > > > > > > > > > > > > So two hubs at ports 1 and 2 of the U

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Arnd Bergmann
On Thursday 21 January 2016 10:21:15 Alan Stern wrote: > On Thu, 21 Jan 2016, Arnd Bergmann wrote: > > > On Thursday 21 January 2016 17:48:32 Peter Chen wrote: > > > > > > > > > > > So two hubs at ports 1 and 2 of the USB controller that integrates > > > > the root hub and shares a device node w

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Alan Stern
On Thu, 21 Jan 2016, Arnd Bergmann wrote: > On Thursday 21 January 2016 17:48:32 Peter Chen wrote: > > > > > > > > So two hubs at ports 1 and 2 of the USB controller that integrates > > > the root hub and shares a device node with it. > > > > > Ok, so the "reg" is the address for certain root h

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Arnd Bergmann
On Thursday 21 January 2016 17:48:32 Peter Chen wrote: > > > > > So two hubs at ports 1 and 2 of the USB controller that integrates > > the root hub and shares a device node with it. > > > Ok, so the "reg" is the address for certain root hub (HS or SS), not > the unity address for the whole cont

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Peter Chen
On Thu, Jan 21, 2016 at 09:41:20AM +0100, Arnd Bergmann wrote: > On Thursday 21 January 2016 11:15:24 Peter Chen wrote: > > > > Just adding from device driver view and change the name from "roohub" to > > "port". > > > > It is the port number (1-9), but not the root hub number. > > > > At the mo

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-21 Thread Arnd Bergmann
On Thursday 21 January 2016 11:15:24 Peter Chen wrote: > > Just adding from device driver view and change the name from "roohub" to > "port". > > It is the port number (1-9), but not the root hub number. > > At the most of embedded platforms, we have only one port per controller. > For example,

Re: [PATCH v3 1/1] USB: core: let USB device know device node

2016-01-20 Thread Peter Chen
On Wed, Jan 20, 2016 at 03:19:36PM +0100, Arnd Bergmann wrote: > On Wednesday 20 January 2016 20:50:26 Peter Chen wrote: > > On Wed, Jan 20, 2016 at 10:07:13AM +0100, Arnd Bergmann wrote: > > > On Wednesday 20 January 2016 11:48:39 Peter Chen wrote: > > > > > > > > > > > Alternatively, you could u