diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-05-25 10:03:17 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-05-26 15:27:20 -0700 |
| commit | 450ba6dd70df79333e9949af731a6b40bfa37856 (patch) | |
| tree | 29f116d1232c2141852fc175dda6c412a512fbff /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 3aff97c7a3edd1dfe51f3e0d24a4fc36197bfbe0 (diff) | |
usb: pd: Update power_supply type to USB_PD after PD is established
The USB power_supply now allows PROP_TYPE to be modified. Update it
to 'USB_PD' only after PD communication has been established. This
can happen only in a couple places:
- in sink mode, when a source capabilities message is received
- in source mode, when GoodCRC is received after sending the
source capabilities message successfully
Since PD_ACTIVE=1 is required to be set, also update it in source
mode prior to sending out the capabilities, and clear it if all the
attempts fail. Remove the unreachable/dead code found there as well.
Change-Id: I77c5875ee8514395a82fac0109b7cff1d507250b
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
