aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2013-09-04 09:05:17 +0100
committerRussell King <[email protected]>2013-09-19 20:12:25 +0100
commit1ff44433c661c30afde6e6d2c47a29039a293da4 (patch)
tree6b7629a39c594b3662ac7e7cc31e556829bdfcfb /lib/test-string_helpers.c
parentf829c04204de83aa0d13307d2a2dc07c0d9a94e3 (diff)
ARM: 7834/1: mmc: mmci: Save and restore register context
If a corresponding power domain exists for the device and it manages to cut the domain regulator while the device is runtime suspended, the IP loses it's registers context. We restore the context in the .runtime_resume callback from the existing register caches to adapt to this situation. We also want to make sure the registers are in a known state while restoring context in the case when the power domain did not drop the power, since there are restrictions for the order of writing to these registers. To handle this, we clear the registers in the .runtime_suspend callback. Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Rickard Andersson <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions