Re: [RFC 10/22] usb: Make core allocate resources per PCI-device.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Friday, December 31, 2010 - 10:38 am

On Thu, 30 Dec 2010, Sarah Sharp wrote:


I'm not sure this "shared_hcd" pointer is needed.  Does it ever get 
used in a non-trivial way?


This doesn't seem like the right approach.  The creation of a secondary 
usb_hcd should be handled by the driver that needs it; it isn't such a 
common activity that we need to implement it in the USB core.  In 
particular, hcd-pci.c shouldn't be changed.


Didn't we agree earlier that xhci-hcd needs to register its USB-2 root 
hub first?



This last argument doesn't really exist, as you can see below.



Do you really need to set hcd->primary_hcd to point to hcd itself?  My 
inclination would be to leave it unset.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC 10/22] usb: Make core allocate resources per PCI- ..., Alan Stern, (Fri Dec 31, 10:38 am)