Files
OpenCellular/common
Shawn Nematbakhsh 75e8dae37c pd: Always update charge manager on PD_CTRL_PS_RDY
When a PD charger is found, we typically update charge manager
voltage / current limits to what we want to request, set a 500mA ceiling,
and then wait for negoiation to complete. If it completes as expected,
we simply remove the 500mA ceiling.

When we're already negotiated with a port and we receive a new power
request, we may switch to a different voltage / current limit. If we do
so, charge manager won't get updated with the existing design because we
don't get new source cap information. Therefore, update charge manager
whenever we receive PD_CTRL_PS_RDY as a sink. Typically, the update will
have no effect because we'll be writing identical values. In the new
power request case though it will serve to inform charge manager of the
new mode.

BUG=chrome-os-partner:45932
TEST=Manual on ryu. Insert zinger, run `pd 0 dev 5` followed by `bq` to
verify 3A limit is set as expected.
BRANCH=ryu

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: I8cc3ac0a3eb603cdeb45ea437906303abcaedac0
Reviewed-on: https://chromium-review.googlesource.com/302844
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
2015-09-29 21:11:38 -07:00
..
2013-12-20 05:07:58 +00:00
2014-05-21 20:32:17 +00:00
2015-06-04 19:33:00 +00:00
2015-09-23 21:26:22 -07:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-05-19 02:46:27 +00:00
2015-09-25 18:05:27 -07:00
2014-03-06 21:33:09 +00:00
2015-08-22 01:37:51 +00:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2015-09-23 21:26:22 -07:00
2014-05-21 20:32:17 +00:00
2015-09-21 11:23:31 -07:00
2014-05-21 20:32:17 +00:00
2015-09-21 01:13:54 -07:00
2015-09-24 12:46:28 -07:00