From patchwork Fri May 1 17:48:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 244754 List-Id: U-Boot discussion From: frank-w at public-files.de (Frank Wunderlich) Date: Fri, 1 May 2020 19:48:52 +0200 Subject: Aw: Re: Re: Re: [ANN] U-Boot v2020.07-rc1 released In-Reply-To: <11e52031-b153-45cc-3d9b-0cb26404dfc3@denx.de> References: <20200429124905.GK4468@bill-the-cat> <0E76C0FC-D0CB-401D-8613-A3883DED6650@public-files.de> <20200430221847.GD4468@bill-the-cat> <12b78b70-f7e1-8cce-82c1-56982b79f32b@denx.de> <3cd8e196-5647-793a-3791-0a56d5fef0ac@denx.de> <11e52031-b153-45cc-3d9b-0cb26404dfc3@denx.de> Message-ID: > >> Gesendet: Freitag, 01. Mai 2020 um 17:39 Uhr > >> Von: "Marek Vasut" > >> Build failed, please fix: > >> https://gitlab.denx.de/u-boot/custodians/u-boot-usb/pipelines/3054 could you try if all tests passing after this Patch? regards Frank commit 9c4a3633e92dbcd51aa60ff14693adc900e3c816 Author: Frank Wunderlich Date: Fri May 1 19:32:12 2020 +0200 fix build-error for xilinx-board caused by xhci-Patches Fixes: "usb: dwc3: use the phy bulk API to get phys" 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 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); }