aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAisheng Dong <aisheng.dong@nxp.com>2018-11-30 08:53:26 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-07-24 10:31:55 +0200
commitca10989632d8820749fad37e13843750198e450a (patch)
tree024c445b7d8ba973154b704380b014b02e5ed26e /fs
parentcan: Kconfig: correct history of the CAN protocol (diff)
downloadlinux-dev-ca10989632d8820749fad37e13843750198e450a.tar.xz
linux-dev-ca10989632d8820749fad37e13843750198e450a.zip
can: flexcan: implement can Runtime PM
Flexcan will be disabled during suspend if no wakeup function required and enabled after resume accordingly. During this period, we could explicitly disable clocks. Since PM is optional, the clock is enabled at probe to guarante the clock is running when PM is not enabled in the kernel. Implement Runtime PM which will: 1) Without CONFIG_PM, clock is running whether Flexcan up or down. 2) With CONFIG_PM, clock enabled while Flexcan up and disabled when Flexcan down. 3) Disable clock when do system suspend and enable clock while system resume. 4) Make Power Domain framework be able to shutdown the corresponding power domain of this device. Signed-off-by: Aisheng Dong <aisheng.dong@nxp.com> Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions