Re: Prolem of setting DeviceRemovable according ACPI information

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

 



于 2012/8/13 23:52, Alan Stern 写道:
On Mon, 13 Aug 2012, Lan, Tianyu wrote:

Hi all:
		I am trying to implement patch of setting DeviceRemovable according ACPI information.
The DeviceRemovable is set in hcd driver *_hub_descriptor(e.g ehci_hub_descriptor()). But these
functions just have struct usb_hcd or hcd specific struct(e.g struct xhci_hcd) and struct usb_hub_descriptor
point as parameter. There is no way to get the root hub's struct usb_device which can be used to find
ports'device and then get ports' acpi handle and information. A bridge between usb_hcd and root hub's
usb_device is needed. I have a proposal of add root hub's struct usb_device point into the struct usb_hcd.
Does this make sense or is there other solutions? Thanks.

hcd->bus.root_hub.
hi Alan:
Thanks for your reminder. Another question is that some hcds'(e.g xhci) DeviceRemovable have been set. They may be conflict with acpi information. How should we deal with the conflict?


Alan Stern

--
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

--
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