summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-pci.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-02-13 14:05:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-17 16:30:29 +0100
commita5d847b0afd317df1ed0e3b72fbef72ce4824532 (patch)
treecb8843a3f811264fdcd53564463d96f65811e75a /drivers/usb/dwc3/dwc3-pci.c
parent582ab24e096fd591026de6f1bbae104e45fecf0f (diff)
downloadlinux-stable-a5d847b0afd317df1ed0e3b72fbef72ce4824532.tar.gz
linux-stable-a5d847b0afd317df1ed0e3b72fbef72ce4824532.tar.bz2
linux-stable-a5d847b0afd317df1ed0e3b72fbef72ce4824532.zip
usb: dwc3: pci: Also apply Bay Trail GPIO mappings to ulpi-device
In order for the phy driver to be able to actually get and control the cs and reset GPIOs the dev_id member of the gpiod_lookup table must be set to point to the dev_name() of the ulpi-device instantiated by dwc3_ulpi_init(). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20220213130524.18748-6-hdegoede@redhat.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-pci.c')
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 6bb4e9614b4f..4330c974b31b 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -242,6 +242,14 @@ static int dwc3_pci_quirks(struct dwc3_pci *dwc,
}
/*
+ * Make the pdev name predictable (only 1 DWC3 on BYT)
+ * and patch the phy dev-name into the lookup table so
+ * that the phy-driver can get the GPIOs.
+ */
+ dwc->dwc3->id = PLATFORM_DEVID_NONE;
+ platform_bytcr_gpios.dev_id = "dwc3.ulpi";
+
+ /*
* Some Android tablets with a Crystal Cove PMIC
* (INT33FD), rely on the TUSB1211 phy for charger
* detection. These can be identified by them _not_