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

Commit dfb6fe48 authored by Srinivasarao P's avatar Srinivasarao P
Browse files

Reverting usb changes



f324c9f5 usb: dwc3: core: don't trigger runtime pm when remove driver
a68cbd8b usb: dwc3: core: add phy cleanup for probe error handling

Change-Id: I3a4d23ebb20c961a08814271404eb58484f19235
Signed-off-by: default avatarSrinivasarao P <spathi@codeaurora.org>
parent 8ee67bc8
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -1507,17 +1507,6 @@ static int dwc3_probe(struct platform_device *pdev)

err5:
	dwc3_event_buffers_cleanup(dwc);

	usb_phy_shutdown(dwc->usb2_phy);
	usb_phy_shutdown(dwc->usb3_phy);
	phy_exit(dwc->usb2_generic_phy);
	phy_exit(dwc->usb3_generic_phy);

	usb_phy_set_suspend(dwc->usb2_phy, 1);
	usb_phy_set_suspend(dwc->usb3_phy, 1);
	phy_power_off(dwc->usb2_generic_phy);
	phy_power_off(dwc->usb3_generic_phy);

	dwc3_ulpi_exit(dwc);

err4:
@@ -1556,9 +1545,9 @@ static int dwc3_remove(struct platform_device *pdev)
	dwc3_core_exit(dwc);
	dwc3_ulpi_exit(dwc);

	pm_runtime_put_sync(&pdev->dev);
	pm_runtime_allow(&pdev->dev);
	pm_runtime_disable(&pdev->dev);
	pm_runtime_put_noidle(&pdev->dev);
	pm_runtime_set_suspended(&pdev->dev);

	dwc3_free_event_buffers(dwc);
	dwc3_free_scratch_buffers(dwc);