qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 76d0a9: usb-host: wait for cancel complete


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 76d0a9: usb-host: wait for cancel complete
Date: Thu, 13 Feb 2020 09:30:13 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 76d0a9362c6a6a7d88aa18c84c4186c9107ecaef
      
https://github.com/qemu/qemu/commit/76d0a9362c6a6a7d88aa18c84c4186c9107ecaef
  Author: Gerd Hoffmann <address@hidden>
  Date:   2020-02-12 (Wed, 12 Feb 2020)

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

  Log Message:
  -----------
  usb-host: wait for cancel complete

After canceling transfers call into libvirt so it can process the
request, and wait for it to complete.  Also cancel all pending
transfers before exiting qemu.

Buglink: https://bugzilla.redhat.com//show_bug.cgi?id=1749745
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 8ddcc43592f215a7523774704df6c60d12d9f647
      
https://github.com/qemu/qemu/commit/8ddcc43592f215a7523774704df6c60d12d9f647
  Author: Gerd Hoffmann <address@hidden>
  Date:   2020-02-12 (Wed, 12 Feb 2020)

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

  Log Message:
  -----------
  uas: fix super speed bMaxPacketSize0

For usb2 bMaxPacketSize0 is "n", for usb3 it is "1 << n",
so it must be 9 not 64 ...

rom "Universal Serial Bus 3.1 Specification":

   If the device is operating at Gen X speed, the bMaxPacketSize0
   field shall be set to 09H indicating a 512-byte maximum packet.
   An Enhanced SuperSpeed device shall not support any other maximum
   packet sizes for the default control pipe (endpoint 0) control
   endpoint.

We now announce a 512-byte maximum packet.

Fixes: 89a453d4a5c ("uas-uas: usb3 streams")
Reported-by: Benjamin David Lunt <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Message-id: address@hidden


  Commit: 48f84ab310317db091810789f98f282c8e58388e
      
https://github.com/qemu/qemu/commit/48f84ab310317db091810789f98f282c8e58388e
  Author: Peter Maydell <address@hidden>
  Date:   2020-02-13 (Thu, 13 Feb 2020)

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

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

usb: bugfixes

# gpg: Signature made Wed 12 Feb 2020 20:57:44 GMT
# 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-20200212-pull-request:
  uas: fix super speed bMaxPacketSize0
  usb-host: wait for cancel complete

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


Compare: https://github.com/qemu/qemu/compare/81f49abaaac2...48f84ab31031



reply via email to

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