forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
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