[PATCH 3/3] usb: ehci: Make usage of generic_{setup,shutdown}_phy_bulk() helpers
Yang Xiwen via B4 Relay
devnull+forbidden405.outlook.com at kernel.org
Thu Feb 1 14:16:10 CET 2024
From: Yang Xiwen <forbidden405 at outlook.com>
Replace generic_setup_phy() and generic_shutdown_phy() by respectively
generic_setup_phy_bulk() and generic_shutdown_phy_bulk().
Signed-off-by: Yang Xiwen <forbidden405 at outlook.com>
---
drivers/usb/host/ehci-generic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c
index 936e30438d..e109d84d73 100644
--- a/drivers/usb/host/ehci-generic.c
+++ b/drivers/usb/host/ehci-generic.c
@@ -25,7 +25,7 @@ struct generic_ehci {
struct ehci_ctrl ctrl;
struct clk_bulk clocks;
struct reset_ctl_bulk resets;
- struct phy phy;
+ struct phy_bulk phys;
struct udevice *vbus_supply;
};
@@ -95,7 +95,7 @@ static int ehci_usb_probe(struct udevice *dev)
if (err)
goto reset_err;
- err = generic_setup_phy(dev, &priv->phy, 0);
+ err = generic_setup_phy_bulk(dev, &priv->phys);
if (err)
goto regulator_err;
@@ -110,7 +110,7 @@ static int ehci_usb_probe(struct udevice *dev)
return 0;
phy_err:
- ret = generic_shutdown_phy(&priv->phy);
+ ret = generic_shutdown_phy_bulk(&priv->phys);
if (ret)
dev_err(dev, "failed to shutdown usb phy (ret=%d)\n", ret);
@@ -140,7 +140,7 @@ static int ehci_usb_remove(struct udevice *dev)
if (ret)
return ret;
- ret = generic_shutdown_phy(&priv->phy);
+ ret = generic_shutdown_phy_bulk(&priv->phys);
if (ret)
return ret;
--
2.43.0
More information about the U-Boot
mailing list