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

Gerd Hoffmann kraxel at kemper.freedesktop.org
Thu Dec 9 04:17:45 PST 2010


New branch 'usb.2' available with the following commits:
commit ea486f3047a77dc32447e24498d23b612143533e
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 af90aa32e20c77a37b5aafa9b904814627e0a3e6
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 8f8b67854808f532fe6a47bef325db8ed7c0b2fc
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 c6c7bb7f0b218ae8db764807156f9a4f85a242fa
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 a1d74f4689a36e99df910319d4d43c9b86fd309c
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 71dc7749c71c276ce86e3182ae792ff73774383f
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 0a1d3b455753cd2fd4c9f0dd17b974a146d845b1
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 79f27df2ceabf9bc0aa0aa282ecb3b60f3d9563c
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 752eaafcdb1746967d480ef6af031138a51e6fcd
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 fae22d0011955937aa849dab39d90a6d647f820c
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.
    
    Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>

commit 333c4fa43755b31c42dfdf4f4908098ed1d35414
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 5fa454d1087eec98ed70553466013133c5186a85
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 13e8cd531cb8ed9aacca4172c20594261c640b0d
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 197e9df562769812f942b0d1a5fb0f3e5ac9d857
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 5a0dfbdc9b06915a83bd5b727a998d5fb4638cc3
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 2fcc908f978561d1ac7db407f0e2939cc16dac23
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 62311e713a432a13ff4bd1090f327b5e4773be82
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 09f9c94f6af48c5b10e42a013358efe42ffb41fa
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 9f1c7732b653342c1bbd0247ae92d93d5889366e
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 586601a8eeb1181a248b6ff9fe6a361eddb3c189
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 0b0c99e08a7530e7585f9d368b9b3921f299fab8
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 12c701da5a102a97a3ef861f517a0bb20c36d979
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 82836c229063d6188db6995a26824c740877c1a6
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 d4bddc4f23be00140c510df1747f012c7abe7bb8
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>



More information about the Spice-commits mailing list