summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Rick Mark2019-12-16 17:59:45 +0100
committerGravatar Nikias Bassen2019-12-16 17:59:45 +0100
commitec5ff91cfabd30637f8af8f5c79baf4d7818ce57 (patch)
tree71932eafb3493fb38a1239b281dc9fc41aa80865 /src
parent9af2b12552693a47601347e1eafc1e94132d727e (diff)
downloadusbmuxd-ec5ff91cfabd30637f8af8f5c79baf4d7818ce57.tar.gz
usbmuxd-ec5ff91cfabd30637f8af8f5c79baf4d7818ce57.tar.bz2
Support T2 chip in restore mode
Diffstat (limited to 'src')
-rw-r--r--src/usb.c5
-rw-r--r--src/usb.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/usb.c b/src/usb.c
index 364930c..9baf933 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -380,8 +380,9 @@ static int usb_device_add(libusb_device* dev)
}
if(devdesc.idVendor != VID_APPLE)
return -1;
- if((devdesc.idProduct < PID_RANGE_LOW) ||
- (devdesc.idProduct > PID_RANGE_MAX))
+ if((devdesc.idProduct != PID_APPLE_T2_COPROCESSOR) &&
+ ((devdesc.idProduct < PID_RANGE_LOW) ||
+ (devdesc.idProduct > PID_RANGE_MAX)))
return -1;
libusb_device_handle *handle;
usbmuxd_log(LL_INFO, "Found new device with v/p %04x:%04x at %d-%d", devdesc.idVendor, devdesc.idProduct, bus, address);
diff --git a/src/usb.h b/src/usb.h
index da784b3..18f2a72 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -46,6 +46,7 @@
#define VID_APPLE 0x5ac
#define PID_RANGE_LOW 0x1290
#define PID_RANGE_MAX 0x12af
+#define PID_APPLE_T2_COPROCESSOR 0x8600
struct usb_device;