linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [usb-next, v2 PATCH] usb: xhci: skip phys initialization of shared hcd
@ 2018-03-22  8:39 Chunfeng Yun
  2018-03-22  9:01 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chunfeng Yun @ 2018-03-22  8:39 UTC (permalink / raw)
  To: Martin Blumenstingl, Greg Kroah-Hartman
  Cc: Mathias Nyman, Matthias Brugger, Chunfeng Yun, Roger Quadros,
	linux-kernel, linux-arm-kernel, linux-usb, linux-mediatek

The phys has already been initialized when add primary hcd,
including usb2 phys and usb3 phys also if exist, so needn't
re-parse "phys" property again.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/core/hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 5a92d8f..777036a 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -2757,7 +2757,7 @@ int usb_add_hcd(struct usb_hcd *hcd,
 		}
 	}
 
-	if (!hcd->skip_phy_initialization) {
+	if (!hcd->skip_phy_initialization && usb_hcd_is_primary_hcd(hcd)) {
 		hcd->phy_roothub = usb_phy_roothub_init(hcd->self.sysdev);
 		if (IS_ERR(hcd->phy_roothub)) {
 			retval = PTR_ERR(hcd->phy_roothub);
-- 
1.9.1

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

end of thread, other threads:[~2018-03-23  3:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-22  8:39 [usb-next, v2 PATCH] usb: xhci: skip phys initialization of shared hcd Chunfeng Yun
2018-03-22  9:01 ` Greg Kroah-Hartman
2018-03-22  9:21   ` Chunfeng Yun
2018-03-22 12:00     ` Greg Kroah-Hartman
2018-03-22 12:29 ` [usb-next, v3 " Roger Quadros
2018-03-22 12:53 ` Greg Kroah-Hartman
2018-03-23  3:20   ` Chunfeng Yun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).