public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] usb: xhci: zynqmp: Removing unused function usb_phy_reset
@ 2015-12-02 14:29 Marek Vasut
  2015-12-02 14:34 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2015-12-02 14:29 UTC (permalink / raw)
  To: u-boot

This patch removes unsued function usb_phy_reset, rather common function
dwc3_phy_reset is used.

Signed-off-by: Marek Vasut <marex@denx.de>
---
 drivers/usb/host/xhci-zynqmp.c | 17 -----------------
 include/linux/usb/dwc3.h       |  1 -
 2 files changed, 18 deletions(-)

diff --git a/drivers/usb/host/xhci-zynqmp.c b/drivers/usb/host/xhci-zynqmp.c
index 530d97c..a735369 100644
--- a/drivers/usb/host/xhci-zynqmp.c
+++ b/drivers/usb/host/xhci-zynqmp.c
@@ -65,23 +65,6 @@ static struct zynqmp_xhci zynqmp_xhci;
 
 unsigned long ctr_addr[] = CONFIG_ZYNQMP_XHCI_LIST;
 
-void usb_phy_reset(struct dwc3 *dwc3_reg)
-{
-	/* Assert USB3 PHY reset */
-	setbits_le32(&dwc3_reg->g_usb3pipectl[0], DWC3_GUSB3PIPECTL_PHYSOFTRST);
-
-	/* Assert USB2 PHY reset */
-	setbits_le32(&dwc3_reg->g_usb2phycfg, DWC3_GUSB2PHYCFG_PHYSOFTRST);
-
-	udelay(10);
-
-	/* Clear USB3 PHY reset */
-	clrbits_le32(&dwc3_reg->g_usb3pipectl[0], DWC3_GUSB3PIPECTL_PHYSOFTRST);
-
-	/* Clear USB2 PHY reset */
-	clrbits_le32(&dwc3_reg->g_usb2phycfg, DWC3_GUSB2PHYCFG_PHYSOFTRST);
-}
-
 static int zynqmp_xhci_core_init(struct zynqmp_xhci *zynqmp_xhci)
 {
 	int ret = 0;
diff --git a/include/linux/usb/dwc3.h b/include/linux/usb/dwc3.h
index dd934a0..6d1e365 100644
--- a/include/linux/usb/dwc3.h
+++ b/include/linux/usb/dwc3.h
@@ -204,7 +204,6 @@ struct dwc3 {					/* offset: 0xC100 */
 void dwc3_set_mode(struct dwc3 *dwc3_reg, u32 mode);
 void dwc3_core_soft_reset(struct dwc3 *dwc3_reg);
 int dwc3_core_init(struct dwc3 *dwc3_reg);
-void usb_phy_reset(struct dwc3 *dwc3_reg);
 void dwc3_set_fladj(struct dwc3 *dwc3_reg, u32 val);
 #endif
 #endif /* __DWC3_H_ */
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] usb: xhci: zynqmp: Removing unused function usb_phy_reset
  2015-12-02 14:29 [U-Boot] [PATCH] usb: xhci: zynqmp: Removing unused function usb_phy_reset Marek Vasut
@ 2015-12-02 14:34 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2015-12-02 14:34 UTC (permalink / raw)
  To: u-boot

On Wednesday, December 02, 2015 at 03:29:13 PM, Marek Vasut wrote:
> This patch removes unsued function usb_phy_reset, rather common function
> dwc3_phy_reset is used.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>

Yes, it's a copy-paste mistake, so applied.

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-02 14:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 14:29 [U-Boot] [PATCH] usb: xhci: zynqmp: Removing unused function usb_phy_reset Marek Vasut
2015-12-02 14:34 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox