mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
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: Chunfeng Yun <chunfeng.yun@mediatek.com> Reviewed-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3864e9451b
commit
29bca25e1b
@@ -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);
|
||||
|
Reference in New Issue
Block a user