Re: [Resend PATCH V4 1/4] USB: Set usb port's DeviceRemovable according acpi information in EHCI

2012-11-15 Thread Lan Tianyu
On 2012年11月15日 04:12, Greg KH wrote: On Tue, Nov 13, 2012 at 04:07:17PM +0800, Lan Tianyu wrote: +for (i = 1; i = ports; i++) { +if (usb_get_hub_port_connect_type( +ehci_to_hcd(ehci)-self.root_hub, i) +==

Re: [Resend PATCH V4 1/4] USB: Set usb port's DeviceRemovable according acpi information in EHCI

2012-11-14 Thread Greg KH
On Tue, Nov 13, 2012 at 04:07:17PM +0800, Lan Tianyu wrote: + for (i = 1; i = ports; i++) { + if (usb_get_hub_port_connect_type( + ehci_to_hcd(ehci)-self.root_hub, i) + == USB_PORT_CONNECT_TYPE_HARD_WIRED) +

[Resend PATCH V4 1/4] USB: Set usb port's DeviceRemovable according acpi information in EHCI

2012-11-13 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 change ehci root hub descriptors and set usb hub port's DeviceRemovable in the hub_configure(). When hub descriptor request is issued at first time, usb port device