Skip to content
Commit e5c02cf5 authored by Samuel Holland's avatar Samuel Holland Committed by Wolfram Sang
Browse files

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: default avatarSamuel Holland <samuel@sholland.org>
Tested-by: default avatarOndrej Jirman <megous@megous.com>
Acked-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 622fa41b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment