summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-dwc3.c
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2020-05-02 11:35:13 +0200
committerMarek Vasut <marek.vasut+renesas@gmail.com>2020-05-02 12:32:28 +0200
commit6dfb8a8052ee024fd20150b558477ab5c3e6f0f9 (patch)
tree82a3042ec18d68c6b626216b7a1f8cf8f7b1545d /drivers/usb/host/xhci-dwc3.c
parent00c82acfe9aadaa624699e4579dace583f944449 (diff)
downloadu-boot-6dfb8a8052ee024fd20150b558477ab5c3e6f0f9.tar.gz
usb: dwc3: use the phy bulk API to get phys
Get a group of phys by the phy bulk API Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: Weijie Gao <weijie.gao@mediatek.com>
Diffstat (limited to 'drivers/usb/host/xhci-dwc3.c')
-rw-r--r--drivers/usb/host/xhci-dwc3.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c
index 9fcfa39d4b..563db1a426 100644
--- a/drivers/usb/host/xhci-dwc3.c
+++ b/drivers/usb/host/xhci-dwc3.c
@@ -19,8 +19,7 @@
#include <linux/usb/otg.h>
struct xhci_dwc3_platdata {
- struct phy *usb_phys;
- int num_phys;
+ struct phy_bulk *usb_phys;
};
void dwc3_set_mode(struct dwc3 *dwc3_reg, u32 mode)
@@ -125,7 +124,7 @@ static int xhci_dwc3_probe(struct udevice *dev)
hcor = (struct xhci_hcor *)((uintptr_t)hccr +
HC_LENGTH(xhci_readl(&(hccr)->cr_capbase)));
- ret = dwc3_setup_phy(dev, &plat->usb_phys, &plat->num_phys);
+ ret = dwc3_setup_phy(dev, plat->usb_phys);
if (ret && (ret != -ENOTSUPP))
return ret;
@@ -168,7 +167,7 @@ static int xhci_dwc3_remove(struct udevice *dev)
{
struct xhci_dwc3_platdata *plat = dev_get_platdata(dev);
- dwc3_shutdown_phy(dev, plat->usb_phys, plat->num_phys);
+ dwc3_shutdown_phy(dev, plat->usb_phys);
return xhci_deregister(dev);
}