Commit 29bca25e authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Greg Kroah-Hartman

usb: skip phys initialization of shared hcd

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: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3864e945
...@@ -2757,7 +2757,7 @@ int usb_add_hcd(struct usb_hcd *hcd, ...@@ -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); hcd->phy_roothub = usb_phy_roothub_init(hcd->self.sysdev);
if (IS_ERR(hcd->phy_roothub)) { if (IS_ERR(hcd->phy_roothub)) {
retval = PTR_ERR(hcd->phy_roothub); retval = PTR_ERR(hcd->phy_roothub);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment