diff options
| author | Ashay Jaiswal <ashayj@codeaurora.org> | 2017-06-14 16:04:45 +0530 |
|---|---|---|
| committer | Ashay Jaiswal <ashayj@codeaurora.org> | 2017-06-21 19:22:08 +0530 |
| commit | 7a071fadb175463dcd24cb1de3f4e6078d5dfb2d (patch) | |
| tree | 57c14492185c1c1a4b827c271d7d181c534274c2 /tools/perf/builtin-script.c | |
| parent | f11fd649ff6594a4614894ae710784b22e7d1289 (diff) | |
power: smb-lib: Add support to detect weak charger
A weak charger might trigger switcher_power_ok interrupt storm
which gets incorrectly detected as a boost_back condition and
input gets suspended. Add a logic to distinguish a weak charger
and the boost_back condition by first reducing the ICL current
to a lower value (500mA by default) on detecting a
switcher_power_ok storm. If the switcher_ok storm disappears
then its indeed a weak charger and if the storm continues its
possibly a boost_back condition.
Change-Id: I46b406e403aa16a502e6da149b180545848fc906
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
