Extend the UQ_NO_STRINGS quirk to also cover the USB language string

descriptor. This fixes enumeration of some older Samsung Galaxy S3
phones.

MFC after:	1 week
This commit is contained in:
Hans Petter Selasky 2016-05-04 08:57:40 +00:00
parent a8cd039341
commit 869df73304
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299060

View File

@ -1774,7 +1774,9 @@ usb_alloc_device(device_t parent_dev, struct usb_bus *bus,
scratch_ptr = udev->scratch.data;
if (udev->ddesc.iManufacturer ||
if (udev->flags.no_strings) {
err = USB_ERR_INVAL;
} else if (udev->ddesc.iManufacturer ||
udev->ddesc.iProduct ||
udev->ddesc.iSerialNumber) {
/* read out the language ID string */