summaryrefslogtreecommitdiff
path: root/include/peripheral_charger.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2021-03-11 13:17:35 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-25 21:28:55 +0000
commit71f8dd80c9380a839365dc82ac5ed4ce87e116b4 (patch)
treef222a7ddb1e63c06e695bf474f4e93ace94060eb /include/peripheral_charger.h
parent7f7d570862ffe9570266954f5551a6bf8aa1c992 (diff)
downloadchrome-ec-71f8dd80c9380a839365dc82ac5ed4ce87e116b4.tar.gz
PCHG: Don't notify host when there is no soc change
Currently, the host is notified every time a charging info message is received from a charger chip. This slows down the host entring suspend state. This patch makes the pchg state machine skip notifying the host when there is no battery level change. BUG=b:182973695, b:173235954, b:183151376 BRANCH=trogdor TEST=Stylus connect, disconnect, charge events are triggered as expected. TEST=Suspend is entered quickly with a stylus attached. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: If27397a56f8cc636637c0872a00496fee3ca7aa5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2770504 (cherry picked from commit 29b492c095675a991147fdde0f586aa9efc94da9) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787478
Diffstat (limited to 'include/peripheral_charger.h')
0 files changed, 0 insertions, 0 deletions