diff options
| author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-13 09:50:41 -0700 |
|---|---|---|
| committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-17 11:54:11 -0700 |
| commit | 2cdfc35e0b9cc3c25fad123a0581f80cae51c507 (patch) | |
| tree | 97124c5a1904011687f7b1dac4389c3437a390fa /lib/test-string_helpers.c | |
| parent | 9cb924f2ed8a729301291b11412a67c03a644db9 (diff) | |
smb-lib: provide insertion removal functions
The current driver votes and unvotes for removal/insertion at
two interrupt handlers, debounce done and the type C detach.
The recommendation from hw teams is to use debounce done for both
insertion and removal. Update the code.
While at it, provide clean functions to vote and unvote for four
situations
a typec cable insertion
a typec cable removal
a source insertion
a source removal
Note that this allows us to cleanly handle PD hard resets where
the typec connection remains intact but the source (or vbus) related
state needs to be reset.
This also helps us in cleanly handling power sole swaps where the source
plugged and removed functions handle vbus related states while typec
functions handle the typec related states.
Change-Id: I49fccb1fcf8eaea8fea1ae186906689a628c02f8
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
