[Spice-commits] Changes to 'usb.4'

Gerd Hoffmann kraxel at kemper.freedesktop.org
Wed Jan 12 03:13:25 PST 2011


New branch 'usb.4' available with the following commits:
commit ace1318b8ea95efa332fb3e8e159924d4f928753
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Jan 12 11:34:50 2011 +0100

    usb: zap pdev from usbport
    
    It isn't needed any more.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 70d31cb22cb67745741b2bb349c9c7c3a184f88b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Jan 12 10:58:27 2011 +0100

    usb: rewrite fw path, fix numbering
    
    This patch rewrites the firmware path code to use the physical port
    location tracking just added to the qemu usb core.  It also fixes the
    port numbering to start with "1" in the firmware path.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 5f69076b8dda325dcbbc87bdb00e04ffac0f6137
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 10 11:43:35 2010 +0100

    usb: add port property.
    
    This allows to explictily set the physical port where you want to
    plug the usb device.  Example:
    
      -device usb-tablet,bus=usb.0,port=2
    
    With explicit port addressing qemu can and will not automagically add
    USB Hubs.  This means that:
    
      (a) You can plug two devices of your choice into the two uhci
          root ports.
      (b) If you want plug in more that two devices you have to care
          about adding a hub yourself.
    
    Plugging a hub works this way:
    
      -device usb-hub,bus=usb.0,port=1
    
    Use this to add a device to the hub:
    
      -device usb-tablet,bus=usb.0,port=1.1
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit c7a2196a4fcdaba977b99aca0b6a6de5e5e7f64a
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 10 11:37:45 2010 +0100

    usb: keep track of physical port address.
    
    Add a path string to USBPort.  Add usb_port_location() function to set
    the physical location of the usb port.  Update all drivers implementing
    usb ports to call it.  Update the monitor commands to print it.  Wind it
    up in qdev.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit fa7935c1e1f84b600fcb1983485352b8d99e01d3
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Dec 9 23:31:49 2010 +0100

    usb storage: handle long responses
    
    The scsi layer may return us more data than the guests wants to have.
    Handle this by just ignoring the extra bytes and calling the
    {read,write}_data callback to finish the request.
    
    Seen happening in real life with some extended inquiry command.
    With this patch applied the linux kernel stops reseting the device
    once at boot.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit ab4797ad2ec34e63ee8751fbd3e5d0a9888eaf4a
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Dec 9 10:36:35 2010 +0100

    usb storage: fix status reporting
    
    Change usb_msd_send_status() to take a pointer to the status packet
    instead of writing the status to s->usb_buf which might not point
    to the correct location.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit ca0c730df977abd7ca24afd17fa640f1af47f0b1
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 3 17:12:49 2010 +0100

    usb storage: high speed support
    
    Add high speed support to the usb mass storage device.  With this patch
    applied the linux kernel recognises the usb storage device as highspeed
    capable device and suggests to connect it to a highspeed port instead of
    the uhci.  Tested with both uhci and (not-yet submitted) ehci.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 25620cba94d7ca126a24d74ce6f2ac42aa9a2fe8
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 8 17:35:22 2010 +0100

    usb: add device qualifier support
    
    Add support for device_qualifier and other_speed_config descriptors.
    These are used to query the "other speed" configuration of usb 2.0
    devices, i.e. in high-speed mode they return the full-speed
    configuration and visa versa.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 32d41919784abe56b10f6d7784c00bb27e4f4d39
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 3 18:07:20 2010 +0100

    usb: add usb_desc_attach
    
    Add usb_desc_attach() which sets up the device according to the speed
    the usb port is able to handle.  This function can be hooked into the
    handle_attach callback.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit b6f77fbe230ad3e9ec5c9115a1535137d5e5d04b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 3 17:59:36 2010 +0100

    usb: add attach callback
    
    Add handle_attach() callback to USBDeviceInfo which is called by the
    generic package handler when the device is attached to the usb bus
    (i.e. plugged into a port).
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 843d4e0c633824a11c4067d0e84bd683520b5d39
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 3 17:30:13 2010 +0100

    usb: add speed mask to ports
    
    Add a field to usb ports indicating the speed(s) they are
    able to handle.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 7b074a22dab4bdda9864b933f1bc811a3db42845
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Dec 14 16:46:40 2010 +0100

    usb: hid: change serial number to "42".
    
    It would be nice to have some way to signal our hid devices support
    remote wakeup.  There is a descriptor bit for that of course.  Problem
    with using is one is that older qemu versions used to set the bit even
    though they did *not* support remote wakeup.  Bummer.
    
    This patch changes the serial number of our hid devices from "1" to "42"
    to signal "it is safe to enable remote wakeup".  The serial number was
    choosen because it isn't used for anything and it is available in sysfs
    so it is easy to match it using udev rules like this:
    
    ACTION=="add", SUBSYSTEM=="usb", \
    	ATTR{product}=="QEMU USB Tablet", ATTR{serial}=="42", \
    	RUN+="usb_enable_autosuspend %p"
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit ac57bbb614ace4f7b8b965562826a7f7fda00cdc
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:50:04 2010 +0100

    usb: hid: remote wakeup support.
    
    Add usb_wakeup() call to the hid driver so remote wakeup actually works.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 34239c7bc972735391ca84283f8c8ad908dc61ef
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 15 12:26:59 2010 +0100

    usb: hub: remote wakeup support.
    
    This patch makes the usb hub handle remote wakeup requests from devices
    properly by updating the port status register and forwarding the wakeup
    to the upstream port.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 9159f6798ebfe0cdcfd1d1fb91c2c08b6d95954a
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:47:40 2010 +0100

    usb: uhci: remote wakeup support.
    
    Add support for remote wakeup to the UHCI adapter.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 01eacab6e95267fd894d0c1013aa5bf55c320dc8
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:32:45 2010 +0100

    usb: add usb_wakeup() + wakeup callback to port ops
    
    Add wakeup callback to port ops for remote wakeup handling.
    Also add a usb_wakeup() function for devices which want
    trigger a remote wakeup.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 618c169b577db64ac6589ad48825d2e11760d1a6
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:27:05 2010 +0100

    usb: rework attach/detach workflow
    
    Add separate detach callback to USBPortOps, split
    uhci/ohci/musb/usbhub attach functions into two.
    
    Move common code to the usb_attach() function, only
    the hardware-specific bits remain in the attach/detach
    callbacks.
    
    Keep track of the port it is attached to for each usb device.
    
    [ v3: fix tyops in usb-musb.c ]
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 0d86d2bebb625a222f70b76972139f6a272e3e0b
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:08:44 2010 +0100

    usb: create USBPortOps, move attach there.
    
    Create USBPortOps struct, move the attach function to that struct.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit ed5a83ddd8c1d8ec7b1015315530cf29949e7c48
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 30 17:35:34 2010 +0100

    usb: move remote wakeup handling to common code
    
    This patch moves setting and clearing the remote_wakeup feature
    bit (via USB_REQ_{SET,CLEAR}_FEATURE) to common code.  Also
    USB_REQ_GET_STATUS handling is moved to common code.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit a980a065fb5e86d6dec337e6cb6ff432f1a143c9
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 20:20:41 2010 +0100

    usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code
    
    This patch adds fields to the USBDevice struct for the current
    speed (hard-wired to full speed for now) and current device
    configuration.  Also a init function is added which inializes
    these fields.  This allows USB_REQ_{GET,SET}_CONFIGURATION
    handling to be moved to common code.
    
    For most drivers the conversion is trivial ad they support a single
    configuration only anyway.  One exception is bluetooth where some
    device-specific setup code runs after get/set configuration.  The
    other is usb-net which actually has two configurations so the
    the code to check for the active configuration has been adapted.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 41c6abbdeb5a86a135ee80a30541ecf52ffd3e23
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 12:35:10 2010 +0100

    usb: move USB_REQ_SET_ADDRESS handling to common code
    
    USB_REQ_SET_ADDRESS handling is identical in *all* emulated devices.
    Move it to common code.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 30c7d32a0a822a9496aee51e7269073311339ed9
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 10:25:06 2010 +0100

    usb network: use new descriptor infrastructure.
    
    Switch the usb network driver over to the
    new descriptor infrastructure.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 4a1e1bc416e99254dcc59a689b3806775ae8dabd
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 12:26:17 2010 +0100

    usb storage: serial number support
    
    If a serial number is present for the drive fill it into the usb
    serialnumber string descriptor.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 132a3f55f05dff4eedde0d23d844ecdedef8ba68
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 12:25:32 2010 +0100

    usb descriptors: add settable strings.
    
    This patch allows to set usb descriptor strings per device instance.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 062651c7e750a0c06a693d336c2b9edb893a2c94
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Nov 26 13:13:22 2010 +0100

    usb hub: use new descriptor infrastructure.
    
    Switch the usb hub driver over to the
    new descriptor infrastructure.
    
    It also removes the nr_ports variable and MAX_PORTS define and
    introduces a NUM_PORTS define instead.  The numver of ports was
    (and still is) fixed at 8 anyway.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 4696425cd05c7baa0a4b469d43ba4b8488bcfc0f
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Nov 25 16:12:18 2010 +0100

    usb bluetooth: use new descriptor infrastructure.
    
    Switch the usb bluetooth driver over to the
    new descriptor infrastructure.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 037a5203de7b12e2e33a7f71753002ae582ac196
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Thu Nov 25 16:12:06 2010 +0100

    usb wacom: use new descriptor infrastructure.
    
    Switch the usb wavom driver over to the
    new descriptor infrastructure.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 81bfd2f24678c5f36d9a6942af3d4b48e4b87226
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Nov 17 11:05:41 2010 +0100

    usb storage: use new descriptor infrastructure.
    
    Switch the usb storage driver over to the
    new descriptor infrastructure.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit f29783f72ea77dfbd7ea0c993d62d253d4c4e023
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Nov 17 11:05:32 2010 +0100

    usb serial: use new descriptor infrastructure.
    
    Switch the usb serial drivers (serial, braille) over to the
    new descriptor infrastructure.
    
    Note that this removes the freely configurable vendor and product id
    properties.  I think the only reason this was configurable is that the
    only difference between the serial and the braille device is the
    vendor+product id.  Of course the serial and braille devices keep their
    different IDs, but they can't be overritten from the command line any
    more.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 0e4e9695d5c4a5923094906433b5f7b431ba35e4
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Nov 17 11:05:05 2010 +0100

    usb hid: use new descriptor infrastructure.
    
    Switch the usb hid drivers (keyboard, mouse, tablet) over to the
    new descriptor infrastructure.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 37fb59d3032687b6f0d94c307bd0a846e0ca1fe0
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Nov 17 11:03:53 2010 +0100

    usb: data structs and helpers for usb descriptors.
    
    This patch adds hw/usb-desc.[ch] files.  They carry data structures
    for various usb descriptors and helper functions to generate usb
    packets from the structures.
    
    The intention is to have a internal representation of the device
    desription which is more usable than the current char array blobs,
    so we can have common code handle common usb device emulation using
    the device description.
    
    The usage of this infrastructure is optional for usb drivers as there
    are cases such as pass-through where it probably isn't very useful.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 5d0d62feee8aa75525207ef24919c0522651a432
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Dec 17 11:11:25 2010 +0100

    usb: update MAINTAINERS
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>



More information about the Spice-commits mailing list