hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/usb/dwc3/dwc3-pci.c
....@@ -187,10 +187,12 @@
187187
188188 /*
189189 * A lot of BYT devices lack ACPI resource entries for
190
- * the GPIOs, add a fallback mapping to the reference
190
+ * the GPIOs. If the ACPI entry for the GPIO controller
191
+ * is present add a fallback mapping to the reference
191192 * design GPIOs which all boards seem to use.
192193 */
193
- gpiod_add_lookup_table(&platform_bytcr_gpios);
194
+ if (acpi_dev_present("INT33FC", NULL, -1))
195
+ gpiod_add_lookup_table(&platform_bytcr_gpios);
194196
195197 /*
196198 * These GPIOs will turn on the USB2 PHY. Note that we have to