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.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
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: fold usb_generic_handle_packet into usb_handle_packet
There is no reason to have a separate usb_generic_handle_packet functionany more, fold it into usb_handle_packet(). Also call the do_token_*functions which handle control transfer emulation for control pipe...
usb: USBPacket: add status, rename owner -> ep
Add enum to track the status of USBPackets, use that instead of theowner pointer to figure whenever a usb packet is currently in flightor not. Add some more packet status sanity checks. Also rename theUSBEndpoint pointer from "owner" to "ep"....
usb: add USBEndpoint->{nr,pid}
Add a "nr" and "pid" fields to USBEndpoint so you can easily figure theendpoint number and direction of any given endpoint.
View revisions
Also available in: Atom