Improved rts8822l-01h chipset detection by adding check for descriptor.bcdUSB ==

0x110 reported by some scanners and accepting any value diferent to 0, read from
0xfe11 register. Patch from Jonathan Bravo Lopez <JKD@JKDSoft.cjb.net>.
merge-requests/1/head
Henning Geinitz 2006-01-14 14:54:56 +00:00
rodzic 3f9935c734
commit 2844681728
2 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -1,3 +1,11 @@
2006-01-14 Henning Meier-Geinitz <henning@meier-geinitz.de>
* tools/check-usb-chip.c: Improved rts8822l-01h chipset
detection by adding check for descriptor.bcdUSB == 0x110 reported
by some scanners and accepting any value diferent to 0, read
from 0xfe11 register. Patch from Jonathan Bravo Lopez
<JKD@JKDSoft.cjb.net>.
2006-01-10 Oliver Schwartz <Oliver.Schwartz@gmx.de>
* doc/descriptions/snapscan.desc: Changed entries for duplicate USB IDs,

Wyświetl plik

@ -2767,7 +2767,7 @@ check_rts8822l01h (struct usb_device *dev)
dev->descriptor.bDeviceClass);
return 0;
}
if (dev->descriptor.bcdUSB != 0x200)
if ((dev->descriptor.bcdUSB != 0x200)&&(dev->descriptor.bcdUSB != 0x110))
{
if (verbose > 2)
printf (" this is not a RTS8822L-01H (bcdUSB = 0x%x)\n",
@ -2882,7 +2882,7 @@ check_rts8822l01h (struct usb_device *dev)
return 0;
}
if ((data[0] & 0x01) != 0x01)
if (data == 0)
{
if (verbose > 2)
printf (" Unexpected result from register 0xfe11 : 0x%0x%0x\n",