summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2021-01-03 13:51:46 +0300
committerWolfram Sang <wsa@kernel.org>2021-02-02 01:05:29 +0300
commite5c02cf541541605f704fbbb9a764e23f88ad0cb (patch)
tree671d17aecbc269e7587380061d56e24e1e83cd9c /drivers/usb/cdns3/cdns3-imx.c
parent622fa41b496d5d15247727cbfc5d000f36755bbc (diff)
downloadlinux-e5c02cf541541605f704fbbb9a764e23f88ad0cb.tar.xz
i2c: mv64xxx: Add runtime PM support
To save power, gate the clock when the bus is inactive, during system sleep, and during shutdown. On some platforms, specifically Allwinner A13/A20, gating the clock implicitly resets the module as well. Since the module already needs to be reset after some suspend/resume cycles, it is simple enough to reset it during every runtime suspend/resume. Because the bus may be used by wakeup source IRQ threads, it needs to be functional as soon as IRQs are enabled. Thus, its system PM hooks need to run in the noirq phase. Signed-off-by: Samuel Holland <samuel@sholland.org> Tested-by: Ondrej Jirman <megous@megous.com> Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions