فهرست منبع

usb: cdns3: Support Type-C plug flip/lane swap

Call PHY reset when we exit IDLE state so
PHY driver can take care of lane swap if it
supports it.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Roger Quadros 6 سال پیش
والد
کامیت
9e37e2d153
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      drivers/usb/cdns3/core.c

+ 2 - 1
drivers/usb/cdns3/core.c

@@ -117,9 +117,10 @@ static int cdns3_idle_role_start(struct cdns3 *cnds)
 	return 0;
 }
 
-static void cdns3_idle_role_stop(struct cdns3 *cnds)
+static void cdns3_idle_role_stop(struct cdns3 *cdns)
 {
 	/* Program Lane swap and bring PHY out of RESET */
+	phy_reset(cdns->phy);
 }
 
 static int cdns3_idle_init(struct cdns3 *cdns)