usb-hub: implement find_device
Implement the find_device callback for the usb hub. It'll loop over allports, calling usb_find_device for all enabled ports until it finds amatching device.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb: handle dev == NULL in usb_handle_packet()
Allow passing in a NULL pointer, return USB_RET_NODEV in that case.Removes the burden to to a NULL pointer check from the callers.
usb-uhci: switch to usb_find_device()
Switch over UHCI to use the new usb_find_device()function for device lookup.
usb-ehci: switch to usb_find_device()
Switch over EHCI to use the new usb_find_device()function for device lookup.
usb-ohci: switch to usb_find_device()
Switch over OHCI to use the new usb_find_device()function for device lookup.
usb-musb: switch to usb_find_device()
Switch over musb to use the new usb_find_device()function for device lookup.
usb-xhci: switch to usb_find_device()
Switch over xHCI to use the new usb_find_device()function for device lookup.
usb: kill handle_packet callback
All drivers except usb-hub use usb_generic_handle_packet. The onlyreason the usb hub has its own function is that it used to be calledwith packets which are intended for downstream devices. With the new,separate device lookup step this doesn't happen any more, so the need...
usb: add usb_find_device()
Add usb_find_device(). This function will check whenever a device witha specific address is connected to the specified port. Usually thiswill just check state and address of the device hooked up to the port,but in case of a hub it will ask the hub to check all hub ports for a...
usb: kill usb_send_msg
No users left. Zap it.
View revisions
Also available in: Atom