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

Gerd Hoffmann kraxel at kemper.freedesktop.org
Wed Dec 1 08:46:25 PST 2010


New branch 'usb.1' available with the following commits:
commit 910e88aeb6244b4adde03f3194dbfd8434db698a
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 11:50:04 2010 +0100

    hid wakeup

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

    uhci: remote wakeup

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

commit 6fb8221f35d56b5d5d9b458c2555b3cd7428e1bd
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/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.

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

    usb: create USBPortOps, move attach there.

commit eff607b07c3182ab7d09ce56f701ccb741a95589
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Wed Dec 1 10:40:23 2010 +0100

    usb: trace get/set feature

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

    usb desc: remote wakeup

commit 13b7c8912da4a8fbb8dbbec06b6124ec1322be29
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 67bb5ff45c08f7ac48e9f6bcef5ca5384681a7ef
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 ffb01992b2ed6f8253aaec5e72d1e9bd801d59a9
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 1093dded344ccd25028f3ce882d05f37a7b2e754
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 237a4143d3b3c79ffb34706202c2d5df4d76c26c
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 e8473f057410349d4ad81a19d92fb96ddcffce1c
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 11c5f735ef999b99d76762c592a90224a35f4ea2
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 015a3e98c8f91d10136ba0e595ab354909a0bd3a
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 53a6c2a88082517d542693c0a1d909599c0d4084
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 058a35405fa08c2985d9637c67514d9ccba74632
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 0811a374d0a23f9127a8940e2bfe321183b350e0
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 7cd3c3669452012c30ada9371f0ce618b1a3ed50
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 32d38f356a3358b4d0fcf175d28959417047d61a
Author: H. Peter Anvin <hpa at linux.intel.com>
Date:   Fri Sep 10 14:47:56 2010 -0700

    Add support for a USB audio device model
    
    This brings a usb audio device to qemu.  Output only, fixed at
    16bit stereo @ 480000 Hz.  Based on a patch from
    H. Peter Anvin <hpa at linux.intel.com>
    
    Usage: add '-device usb-audio' to your qemu command line.
    
    Works sorta ok on a idle machine.  Known issues:
    
     * Is *very* sensitive to latencies: when the uhci emulation misses one
       of the usb frame rate wakeups (1k/sec!) you'll loose/delay data from
       the audio stream, resulting in dropouts.
     * Also seems to not play very well with the usb tablet (and/or usb hub,
       to be investigated).  Best try this as the only device on a usb bus.
     * Burns quite some CPU due to usb polling.
    
    In short:  It brings the qemu usb emulation to its limits.  Enjoy!

commit 1a6b3cea332c698f3bc77d33ab47b859d0a30410
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Tue Nov 16 09:26:44 2010 +0100

    [debug] timer tracking



More information about the Spice-commits mailing list