Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ea1ac54 authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: xhci: Remove usb_phy get phandle from xhci_plat_probe



usb_phy_init will be called as a part of core_reset.
Adding usb_phy phandle in xhci_plat_probe will call
usb_phy_init twice which is breaking host mode
functionality. This change removes usb_phy get
phandle from xhci_plat_probe.

Change-Id: Ib407bf1d108cb030fd9c8ab71000127ae305b955
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent a510f95c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -347,8 +347,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
	if (device_property_read_u32(&pdev->dev, "usb-core-id", &xhci->core_id))
		xhci->core_id = -EINVAL;

	hcd->usb_phy = devm_usb_get_phy_by_phandle(pdev->dev.parent, "usb-phy",
			0);
	hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0);
	if (IS_ERR(hcd->usb_phy)) {
		ret = PTR_ERR(hcd->usb_phy);
		if (ret == -EPROBE_DEFER)