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>
Loading
Please register or sign in to comment