usb: add usb_handle_packet
Add a usb_handle_packet function, put it into use everywhere.Right now it just calls dev->info->handle_packet(), that willchange in future patches though.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb: keep track of packet owner.
Keep track of the device which owns the usb packet for async processing.
usb: move cancel callback to USBDeviceInfo
Remove the cancel callback from the USBPacket struct, move it overto USBDeviceInfo. Zap usb_defer_packet() which is obsolete now.
usb-linux: fix device path aka physical port handling
The device path isn't just a number. It specifies the physical portthe device is connected to and in case the device is connected viausb hub you'll have two numbers there, like this: "5.1". The first...
usb-linux: add hostport property
This patch adds a hostport property which allows to specify the host usbdevices to pass through by bus number and physical port. This means youcan basically hand over one (or more) of the usb plugs on your host tothe guest and whatever device is plugged in there will show up in the...
usb-linux: track aurbs in list
This patch adds code to track all async urbs in a linked list,so we can find them without having to pass around a opaquepointer to them. Prerequisite for the cleanups.
usb-linux: walk async urb list in cancel
Lookup async urbs which are to be canceled using the linked listinstead of the direct opaque pointer. There are two reasons weare doing that: First, to avoid the opaque poiner to the callback,which is needed for upcoming cleanups. Second, because we might...
usb-linux: split large xfers
Add support for splitting large transfers into multiple smaller ones.This is needed for the upcoming EHCI emulation which allows gueststo submit requests up to 20k in size. The linux kernel allows 16kmax size though.
Based on a patch from David Ahern, see...
usb-linux: fix max_packet_size for highspeed.
Calculate the max packet size correctly. Only bits 0..11 specify the size,bits 11+12 specify the number of (highspeed) microframes the endpoint wantsto use.
usb-storage: don't call usb_packet_complete twice
usb_msd_copy_data() may cause a recursive call tousb_msd_command_complete() which in turn may completethe packet, setting s->packet to NULL in case it does.Recheck s->packet before calling usb_packet_complete()...
View all revisions | View revisions
Also available in: Atom