diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-08-22 16:53:59 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-08-22 17:03:37 -0700 |
| commit | 4e9330685211bfdbf0095678ba09d4d381b806f7 (patch) | |
| tree | cb6ce051cac81cbc2e36c459d76c52681fe352d2 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 0c8cf716fa02d0f6b6ef2ef1446f9f4819fc83dd (diff) | |
usb: pd: Clear requested_voltage/current values on disconnect
During valid sink hard reset, if requested_current was non-zero,
the power_supply CURRENT_MAX property is set to 0 to tell the
charger driver to suspend charging while the source resets.
However, for non-PD sources this is not needed, and in fact would
falsely tell the charger to suspend charging indefinitely since
there is no event to restore a non-zero current vote. The bug here
is that although there is a check for non-zero requested_current,
this could be a stale value from a previous PD session, and a
subsequent non-PD adapter plugin results in no charging. Fix this
by clearing requested_voltage and requested_current on disconnect.
Change-Id: Ie770546916e24faa2932b64dee6277435a27ce3b
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
