Files
OpenCellular/power
Aseda Aboagye 8e75397652 power: common: Prevent console spam.
The power state driver would print out the current power state along
with its signals everytime a power signal interrupt was fired.  On some
systems, a signal may briefly go low and then come back before our
chipset module has a chance to notice.  This causes what appears to be
duplicate prints.

This commit tries to only print out the current power state when
something has actually changed.  If the input power signals or state
differs from the last time it checked, then the information will be
printed.

BUG=None
BRANCH=gru
TEST=Find a kevin where PGOOD goes away quite frequently.  Build and
flash; Verify that significantly less "power state S0" console spam is
emitted.
TEST=Verify that all state transitions are still printed.

Change-Id: I9d66c04e2ed79ab203c54f0a8dad82f32856bbf0
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/388761
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2016-09-26 11:59:15 -07:00
..
2016-03-31 21:35:56 -07:00
2016-09-26 11:59:15 -07:00