diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2015-01-08 23:52:26 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-01-24 19:50:08 (GMT) |
commit | 96b26c8c64c7a30488b8b404f7a63346df4c3bff (patch) | |
tree | d51619d0d63ab934cee6cda089531de56ed0e283 /drivers/clk/mmp/clk.h | |
parent | a59db67656021fa212e9b95a583f13c34eb67cd9 (diff) | |
download | linux-96b26c8c64c7a30488b8b404f7a63346df4c3bff.tar.xz |
dm: fix handling of multiple internal suspends
Commit ffcc393641 ("dm: enhance internal suspend and resume interface")
attempted to handle multiple internal suspends on the same device, but
it did that incorrectly. When these functions are called in this order
on the same device the device is no longer suspended, but it should be:
dm_internal_suspend_noflush
dm_internal_suspend_noflush
dm_internal_resume
Fix this bug by maintaining an 'internal_suspend_count' and resuming
the device when this count drops to zero.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/clk/mmp/clk.h')
0 files changed, 0 insertions, 0 deletions