qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [qemu/qemu] 896b67: usb-host: support devices with sparse


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 896b67: usb-host: support devices with sparse/non-sequenti...
Date: Thu, 22 Jun 2017 07:43:37 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 896b6757f9c4d176ce4439238efea223a2952411
      
https://github.com/qemu/qemu/commit/896b6757f9c4d176ce4439238efea223a2952411
  Author: Samuel Brian <address@hidden>
  Date:   2017-06-21 (Wed, 21 Jun 2017)

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

  Log Message:
  -----------
  usb-host: support devices with sparse/non-sequential USB interfaces

Some USB devices have sparse interface numbering which is not able to be
passthroughed.
For example, the Sierra Wireless MC7455/MC7430:

  # lsusb  -D /dev/bus/usb/003/003 | egrep 
'1199|9071|bNumInterfaces|bInterfaceNumber'
  Device: ID 1199:9071 Sierra Wireless, Inc.
    idVendor           0x1199 Sierra Wireless, Inc.
    idProduct          0x9071
      bNumInterfaces          5
  bInterfaceNumber        0
  bInterfaceNumber        2
  bInterfaceNumber        3
  bInterfaceNumber        8
  bInterfaceNumber       10

In this case, the interface numbers are 0, 2, 3, 8, 10 and not the
0, 1, 2, 3, 4 that QEMU tries to claim.

This change allows sparse USB interface numbering.
Instead of only claiming the interfaces in the range reported by the USB
device through bNumInterfaces, QEMU attempts to claim all possible
interfaces.

v2 to fix broken v1 patch formatting.
v3 to fix indentation.

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


  Commit: e18a639164e162b3a4f078ab60606cd2f163d934
      
https://github.com/qemu/qemu/commit/e18a639164e162b3a4f078ab60606cd2f163d934
  Author: Peter Maydell <address@hidden>
  Date:   2017-06-22 (Thu, 22 Jun 2017)

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

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

# gpg: Signature made Wed 21 Jun 2017 16:43:14 BST
# gpg:                using RSA key 0x4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg:                 aka "Gerd Hoffmann <address@hidden>"
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/usb-20170621-pull-request:
  usb-host: support devices with sparse/non-sequential USB interfaces

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


Compare: https://github.com/qemu/qemu/compare/469819a3e8e3...e18a639164e1

reply via email to

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