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

Commit de2ef6e6 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: dwc3: Read snps,bus-suspend-enable property



Driver needs to read this property to enable usb low power
mode in device bus suspend when usb cable is plugged in.

Change-Id: Ie53950541c178b6844af55a1c346d8abeb0b6e7c
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f797d13b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -59,6 +59,8 @@ Optional properties:
 - snps,xhci-imod-value: Interrupt moderation interval for host mode
	(in increments of 250nsec).
 - usb-core-id: Differentiates between different controllers present on a device.
 - snps,bus-suspend-enable: If present then controller supports low power mode
	during bus suspend.

This is usually a subnode to DWC3 glue to which it is connected.

+2 −1
Original line number Diff line number Diff line
@@ -1218,7 +1218,8 @@ static int dwc3_probe(struct platform_device *pdev)
				 &dwc->fladj);
	dwc->disable_clk_gating = device_property_read_bool(dev,
				"snps,disable-clk-gating");

	dwc->enable_bus_suspend = device_property_read_bool(dev,
					"snps,bus-suspend-enable");
	if (dwc->enable_bus_suspend) {
		pm_runtime_set_autosuspend_delay(dev, 500);
		pm_runtime_use_autosuspend(dev);