diff options
| author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-06 12:59:04 -0700 |
|---|---|---|
| committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-17 11:54:10 -0700 |
| commit | 9cb924f2ed8a729301291b11412a67c03a644db9 (patch) | |
| tree | 2fab2b70921389131dedb84c77cdcbc31a1f29f0 /lib/test-string_helpers.c | |
| parent | ebdc69997401fa8f92597cbfe1ff574a8265a930 (diff) | |
qpnp-smb2: handle shorted vbus and cc lines and legacy cables
There could be cables where vbus and cc lines are shorted or connected
using a small resistor. Raising VBUS to higher values could cause CC
line to get damaged. CC line cannot tolerate a voltage higher than 6V.
So if such a cable is seen, prevent pd stack from running so there is no
opportunity to increase vbus by selecting a higher voltage profile. Also
disable HVDP too.
Also, prevent PD_ALLOWED if a legacy cable is seen - the spec mentions
that if VBUS is seen along with CC, the adapter is not pd capable.
Change-Id: I7411bd541ffe704dda97dd869a3dbd4dbfc99518
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
