summaryrefslogtreecommitdiff
path: root/drivers/usb/chipidea/ulpi.c
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2024-04-02 09:23:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-09 18:38:03 +0300
commit22ffd399e6e7aa18ae0314278ed0b7f05f8ab679 (patch)
treed7b6cfbbd99cc1f78ae1d0931bdb616976dd2421 /drivers/usb/chipidea/ulpi.c
parent00bca46580611a22d430bb709df96decb03e0756 (diff)
downloadlinux-22ffd399e6e7aa18ae0314278ed0b7f05f8ab679.tar.xz
usb: chipidea: move ci_ulpi_init after the phy initialization
The function ci_usb_phy_init is already handling the hw_phymode_configure path which is also only possible after we have a valid phy. So we move the ci_ulpi_init after the phy initialization to be really sure to be able to communicate with the ulpi phy. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Acked-by: Peter Chen <peter.chen@kernel.org> Link: https://lore.kernel.org/r/20240328-chipidea-phy-misc-v1-1-907d9de5d4df@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/ulpi.c')
-rw-r--r--drivers/usb/chipidea/ulpi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/chipidea/ulpi.c b/drivers/usb/chipidea/ulpi.c
index dfec07e8ae1d..89fb51e2c3de 100644
--- a/drivers/usb/chipidea/ulpi.c
+++ b/drivers/usb/chipidea/ulpi.c
@@ -68,11 +68,6 @@ int ci_ulpi_init(struct ci_hdrc *ci)
if (ci->platdata->phy_mode != USBPHY_INTERFACE_MODE_ULPI)
return 0;
- /*
- * Set PORTSC correctly so we can read/write ULPI registers for
- * identification purposes
- */
- hw_phymode_configure(ci);
ci->ulpi_ops.read = ci_ulpi_read;
ci->ulpi_ops.write = ci_ulpi_write;