Skip to content

Commit fde56c8

Browse files
authored
Merge pull request #99 from juniskane/qcm6490_pr
usb: add new USB pid 0x901d for Qualcomm QCM6490
2 parents 1ec12f6 + c9abbe7 commit fde56c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

usb.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,10 @@ static int qdl_try_open(libusb_device *dev, struct qdl_device *qdl, const char *
7070
return -1;
7171
}
7272

73-
/* Consider only devices with vid 0x0506 and product id 0x9008 or 0x900e */
74-
if (desc.idVendor != 0x05c6 || (desc.idProduct != 0x9008 && desc.idProduct != 0x900e))
73+
/* Consider only devices with vid 0x0506 and known product id */
74+
if (desc.idVendor != 0x05c6)
75+
return 0;
76+
if (desc.idProduct != 0x9008 && desc.idProduct != 0x900e && desc.idProduct != 0x901d)
7577
return 0;
7678

7779
ret = libusb_get_active_config_descriptor(dev, &config);

0 commit comments

Comments
 (0)