Commit 915f9666 authored by Sean Nyekjaer's avatar Sean Nyekjaer Committed by Marc Kleine-Budde
Browse files

can: flexcan: add support for DT property 'wakeup-source'



The flexcan controller can be forced as a wakeup source by
stating that explicitly in the device's .dts file using the
"wakeup-source" boolean property.

Signed-off-by: default avatarSean Nyekjaer <sean@geanix.com>
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 10e0c525
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1473,6 +1473,9 @@ static int flexcan_setup_stop_mode(struct platform_device *pdev)

	device_set_wakeup_capable(&pdev->dev, true);

	if (of_property_read_bool(np, "wakeup-source"))
		device_set_wakeup_enable(&pdev->dev, true);

	return 0;
}