Merge "fastboot: Workaround for touchbar hang on MBP 2016"
This commit is contained in:
commit
fc267f865e
1 changed files with 0 additions and 8 deletions
|
|
@ -92,7 +92,6 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) {
|
||||||
HRESULT result;
|
HRESULT result;
|
||||||
SInt32 score;
|
SInt32 score;
|
||||||
UInt8 interfaceNumEndpoints;
|
UInt8 interfaceNumEndpoints;
|
||||||
UInt8 configuration;
|
|
||||||
|
|
||||||
// Placing the constant KIOUSBFindInterfaceDontCare into the following
|
// Placing the constant KIOUSBFindInterfaceDontCare into the following
|
||||||
// fields of the IOUSBFindInterfaceRequest structure will allow us to
|
// fields of the IOUSBFindInterfaceRequest structure will allow us to
|
||||||
|
|
@ -102,13 +101,6 @@ static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) {
|
||||||
request.bInterfaceProtocol = kIOUSBFindInterfaceDontCare;
|
request.bInterfaceProtocol = kIOUSBFindInterfaceDontCare;
|
||||||
request.bAlternateSetting = kIOUSBFindInterfaceDontCare;
|
request.bAlternateSetting = kIOUSBFindInterfaceDontCare;
|
||||||
|
|
||||||
// SetConfiguration will kill an existing UMS connection, so let's
|
|
||||||
// not do this if not necessary.
|
|
||||||
configuration = 0;
|
|
||||||
(*dev)->GetConfiguration(dev, &configuration);
|
|
||||||
if (configuration != 1)
|
|
||||||
(*dev)->SetConfiguration(dev, 1);
|
|
||||||
|
|
||||||
// Get an iterator for the interfaces on the device
|
// Get an iterator for the interfaces on the device
|
||||||
kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator);
|
kr = (*dev)->CreateInterfaceIterator(dev, &request, &iterator);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue