diff options
| author | Nicholas Troast <ntroast@codeaurora.org> | 2017-03-22 14:44:49 -0700 |
|---|---|---|
| committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2017-04-17 17:35:41 -0700 |
| commit | 9b1513098b1ea710c5eb0ea9635b35580a9a243f (patch) | |
| tree | c05d381c6d571cf7ba08dc0927979ebb3c3e2555 /include/linux/fpga/fpga-mgr.h | |
| parent | 95d620e079be4a2cf2ee801b99f4561ec701cfe7 (diff) | |
power: smb-lib: cleanup everything upon USB removal
Currently it is expected upon USB removal that consumers will receive a
notification that USB has been removed and will cleanup after
themselves. Unfortunately this makes it very difficult to keep track of
all of the necessary cleanup steps upon removal.
Also, in preparation of not allowing consumers to set properties after a
USB removal has happened it is now the responsibility of the charger
driver to cleanup on their behalf.
Moreover, since we don't have a separate removal/insertion interrupt,
the removal/insertion code may run even if the typeC cable is not
physically inserted/removed. Fix it by tracking a typec_present flag.
CRs-Fixed: 2020132
Change-Id: Ia514abaa4e12f72daec17fd1e95f3c51cc38a15f
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions
