Re: [RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-10 Thread Sarah Sharp
On Fri, Sep 07, 2012 at 05:33:29PM +0800, Lan Tianyu wrote: > On 2012/9/5 22:39, Alan Stern wrote: > >On Wed, 5 Sep 2012, Lan Tianyu wrote: > > > >>This is copied from xhci_usb3_hub_descriptor(). > >> > >>struct usb_hub_descriptor { > >>__u8 bDescLength; > >>__u8 bDescriptorType; > >>

Re: [RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-07 Thread Lan Tianyu
On 2012/9/5 22:39, Alan Stern wrote: On Wed, 5 Sep 2012, Lan Tianyu wrote: This is copied from xhci_usb3_hub_descriptor(). struct usb_hub_descriptor { __u8 bDescLength; __u8 bDescriptorType; __u8 bNbrPorts; __le16 wHubCharacteristics; __u8 bPwrOn2Pwr

Re: [RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-05 Thread Alan Stern
On Wed, 5 Sep 2012, Lan Tianyu wrote: > This is copied from xhci_usb3_hub_descriptor(). > > struct usb_hub_descriptor { > __u8 bDescLength; > __u8 bDescriptorType; > __u8 bNbrPorts; > __le16 wHubCharacteristics; > __u8 bPwrOn2PwrGood; > __u8 bHubContrCurre

Re: [RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-05 Thread Lan Tianyu
On 2012/9/5 0:15, Alan Stern wrote: On Mon, 3 Sep 2012, Lan Tianyu wrote: ACPI provide "_PLD" and "_UPC" aml methods to describe usb port visibility and connectability. This patch is to use those information to set usb port's DeviceRemovable. Signed-off-by: Lan Tianyu --- v2: Set DeviceRemova

Re: [RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-04 Thread Alan Stern
On Mon, 3 Sep 2012, Lan Tianyu wrote: > ACPI provide "_PLD" and "_UPC" aml methods to describe usb port > visibility and connectability. This patch is to use those information > to set usb port's DeviceRemovable. > > Signed-off-by: Lan Tianyu > --- > v2: Set DeviceRemovable according acpi infoma

[RFC PATCH V2 2/2] USB: Set usb port's DevicerRemovable according acpi information in EHCI

2012-09-03 Thread Lan Tianyu
ACPI provide "_PLD" and "_UPC" aml methods to describe usb port visibility and connectability. This patch is to use those information to set usb port's DeviceRemovable. Signed-off-by: Lan Tianyu --- v2: Set DeviceRemovable according acpi infomation in the hub_configure() instead of calling get_hu