We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6113960 + 2899fbc commit 2f3e661Copy full SHA for 2f3e661
drivers/ftdi-gpio.c
@@ -311,16 +311,16 @@ static void *ftdi_gpio_open(struct device *dev)
311
if (ftdi_gpio->options->gpios[GPIO_POWER_KEY].present)
312
dev->has_power_key = true;
313
314
+ if (ftdi_gpio->options->gpios[GPIO_OUTPUT_ENABLE].present)
315
+ ftdi_gpio_toggle_io(ftdi_gpio, GPIO_OUTPUT_ENABLE, 1);
316
+
317
ftdi_gpio_device_power(ftdi_gpio, 0);
318
319
if (dev->usb_always_on)
320
ftdi_gpio_device_usb(ftdi_gpio, 1);
321
else
322
ftdi_gpio_device_usb(ftdi_gpio, 0);
323
- if (ftdi_gpio->options->gpios[GPIO_OUTPUT_ENABLE].present)
- ftdi_gpio_toggle_io(ftdi_gpio, GPIO_OUTPUT_ENABLE, 1);
-
324
usleep(500000);
325
326
return ftdi_gpio;
0 commit comments