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

Commit 5e474b46 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents e1962ded de2ef6e6
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);