diff options
author | Alec Berg <alecaberg@chromium.org> | 2014-12-19 09:03:46 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-12-22 05:38:14 +0000 |
commit | 4b6148c52604eff49920fd64021b7617b49bfcde (patch) | |
tree | 09ccbeca85963d8069487352fbce516f2b1cd4fc /board/hoho | |
parent | 8602781f93d85e10d3d712304c59cdcb71d9fc6f (diff) | |
download | chrome-ec-4b6148c52604eff49920fd64021b7617b49bfcde.tar.gz |
pd: allow new power request if the max voltage has changed
The current power request function avoids redundant requests by
checking if we have previously requested vSafe5V or the max we
can request. But, if the max voltage that we can request changes,
then sending another max request is not redundant. This CL modifies
the request function to check for redundant requests by checking
the max voltage that can be requested, so if the max voltage
changes, then a new request is allowed.
BUG=none
BRANCH=samus
TEST=on pd console:
pd 0 dev 5
pd 0 dev 12
pd 0 dev 20
all send new request immediately.
Change-Id: Ifcdcc3eac9e566714f6dc609e46bbb0b94426499
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/236882
Reviewed-by: Shawn Nematbakhsh <shawnn@chromium.org>
Diffstat (limited to 'board/hoho')
0 files changed, 0 insertions, 0 deletions