mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
8501badde7178f6197f534093ff7aae33af2ca71
Fix bug with the new VBUS_NEVER_LOW flag in which if a BC1.2 charger is attached on boot, we will not set the charger as a dedicated charger and therefore not charge from it, until the charger is disconnected and reconnected. This happens because in SNK_DISCOVERY we will send soft reset first, and then when the charger doesn't respond, we send hard reset. But, registering the charger as a dedicated charger previously only happened when we send hard reset directly after SNK_DISCOVERY state. BUG=none BRANCH=none TEST=tested on glados. sysjump with bc1.2 charger plugged in and make sure we charge from it. Change-Id: Ida89304092a2186bcb2aa885917d706231490288 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/311364 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@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%