qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 7ed465: usb: call reset handler before updati


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 7ed465: usb: call reset handler before updating state
Date: Thu, 30 May 2019 07:07:31 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 7ed4657396add28382081a15557c78cd480c1cf1
      
https://github.com/qemu/qemu/commit/7ed4657396add28382081a15557c78cd480c1cf1
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/core.c

  Log Message:
  -----------
  usb: call reset handler before updating state

That way the device reset handler can see what
the before-reset state of the device is.

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 65f14ab98da1da920f98ee8734dc1588b01d6b2b
      
https://github.com/qemu/qemu/commit/65f14ab98da1da920f98ee8734dc1588b01d6b2b
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/host-libusb.c

  Log Message:
  -----------
  usb-host: skip reset for untouched devices

If the guest didn't talk to the device yet, skip the reset.
Without this usb-host devices get resetted a number of times
at boot time for no good reason.

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: bfe44898848614cfcb3a269bc965afbe1f0f331c
      
https://github.com/qemu/qemu/commit/bfe44898848614cfcb3a269bc965afbe1f0f331c
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/host-libusb.c

  Log Message:
  -----------
  usb-host: avoid libusb_set_configuration calls

Seems some devices become confused when we call
libusb_set_configuration().  So before calling the function check
whenever the device has multiple configurations in the first place, and
in case it hasn't (which is the case for the majority of devices) simply
skip the call as it will have no effect anyway.

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: bdb88a8e120e6b5eca5d3a19f5f8f1b76fa64453
      
https://github.com/qemu/qemu/commit/bdb88a8e120e6b5eca5d3a19f5f8f1b76fa64453
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: tweak feature names

Add dashes, so they don't look like two separate things when printed.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden


  Commit: 9d84bb001c2c99aa1df3f32a529c1fa3e3afb39d
      
https://github.com/qemu/qemu/commit/9d84bb001c2c99aa1df3f32a529c1fa3e3afb39d
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: make number of ports runtime-configurable

Add num_ports property which allows configure the number of downstream
ports.  Valid range is 1-8, default is 8.

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 868a420393e1231be75d12a3d0df67f3c466a56a
      
https://github.com/qemu/qemu/commit/868a420393e1231be75d12a3d0df67f3c466a56a
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: add helpers to update port state

Add usb_hub_port_set() and usb_hub_port_clear() helpers which care about
updating the change bits (port->wPortChange) properly, so we don't need
to have that logic sprinkled all over the place ;)

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 638ac2d8437b7600262bc584e3634f1aaca732cf
      
https://github.com/qemu/qemu/commit/638ac2d8437b7600262bc584e3634f1aaca732cf
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: add usb_hub_port_update()

Helper function to update port status bits which depends on the
connected device.  We need the same logic for device attach and
port reset, so factor it out.

Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden


  Commit: 1cc403eb2164146b0769507746ff6565d40fee98
      
https://github.com/qemu/qemu/commit/1cc403eb2164146b0769507746ff6565d40fee98
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/usb/dev-hub.c

  Log Message:
  -----------
  usb-hub: emulate per port power switching

Add support for per port power switching.
Virtual power of course ;)

Use port-power=on property to enable this.

Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 442bac16a6cd708a9f87adb0a263f9d833f03ed5
      
https://github.com/qemu/qemu/commit/442bac16a6cd708a9f87adb0a263f9d833f03ed5
  Author: Gerd Hoffmann <address@hidden>
  Date:   2019-05-29 (Wed, 29 May 2019)

  Changed paths:
    M hw/core/machine.c

  Log Message:
  -----------
  usb-tablet: fix serial compat property

s/kbd/tablet/, fixes cut+paste bug.

Cc: address@hidden
Reported-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden


  Commit: 48a8b399619cf3bb745a2e052f9fec142f14d75d
      
https://github.com/qemu/qemu/commit/48a8b399619cf3bb745a2e052f9fec142f14d75d
  Author: Peter Maydell <address@hidden>
  Date:   2019-05-30 (Thu, 30 May 2019)

  Changed paths:
    M hw/core/machine.c
    M hw/usb/core.c
    M hw/usb/dev-hub.c
    M hw/usb/host-libusb.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/usb-20190529-pull-request' 
into staging

usb-hub: port count config option, emulate power switching, cleanups.
usb-tablet, usb-host: bugfixes.

# gpg: Signature made Wed 29 May 2019 07:28:18 BST
# gpg:                using RSA key 4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann <address@hidden>" [full]
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>" [full]
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/usb-20190529-pull-request:
  usb-tablet: fix serial compat property
  usb-hub: emulate per port power switching
  usb-hub: add usb_hub_port_update()
  usb-hub: add helpers to update port state
  usb-hub: make number of ports runtime-configurable
  usb-hub: tweak feature names
  usb-host: avoid libusb_set_configuration calls
  usb-host: skip reset for untouched devices
  usb: call reset handler before updating state

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/95172e24051c...48a8b399619c



reply via email to

[Prev in Thread] Current Thread [Next in Thread]