mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
8d617567ca52d12352239ac5d4497ecc9620d1bd
On some systems, recovering from charge circuit being wedged doesn't happen immediately, and we end up constantly detecting charge circuit wedged problems and recovering from it. This CL adds a counter to check_charge_wedged() and reads PROCHOT but does not trigger the charge circuit wedged until after a certain number of checks after the last charge wedged condition. This allows more time for the condition to magically go away before intervening. BUG=chrome-os-partner:36081 BRANCH=samus TEST=found two units that were regularly detecting charge circuit wedged and recovering from it (every 4 seconds, 2 seconds before detecting the issue and 2 seconds to recover). on one unit, the problem went away on its own. On the second unit, I loaded this CL into RO, and ToT in RW, then verified that RO does not continually trigger charge circuit wedged problems, while RW still does. Change-Id: I4c4e5c52ad382f178696d61c7b36faf9e8978926 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/247160 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%