mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Tweak UHCI device settings. Ignore host root hubs.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1779 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
09c56b842e
commit
38ca0f6dee
2 changed files with 8 additions and 3 deletions
|
@ -278,7 +278,8 @@ static int usb_host_scan(void *opaque, USBScanFunc *func)
|
|||
if (strlen(line) > 0)
|
||||
line[strlen(line) - 1] = '\0';
|
||||
if (line[0] == 'T' && line[1] == ':') {
|
||||
if (device_count) {
|
||||
if (device_count && (vendor_id || product_id)) {
|
||||
/* New device. Add the previously discovered device. */
|
||||
ret = func(opaque, bus_num, addr, class_id, vendor_id,
|
||||
product_id, product_name, speed);
|
||||
if (ret)
|
||||
|
@ -321,7 +322,8 @@ static int usb_host_scan(void *opaque, USBScanFunc *func)
|
|||
}
|
||||
fail: ;
|
||||
}
|
||||
if (device_count) {
|
||||
if (device_count && (vendor_id || product_id)) {
|
||||
/* Add the last device. */
|
||||
ret = func(opaque, bus_num, addr, class_id, vendor_id,
|
||||
product_id, product_name, speed);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue