commit | 07a6900389b0316379ee8e0776668903cc064b07 | [log] [tgz] |
---|---|---|
author | Nicholas Troast <ntroast@codeaurora.org> | Fri Jan 20 13:52:10 2017 -0800 |
committer | Harry Yang <harryy@codeaurora.org> | Mon Mar 27 11:02:57 2017 -0700 |
tree | 3a3f2c049edfb9a5e35771015c6f4a69900512df | |
parent | ae1aa82844af750a0e3c46b2f1e57db92360daba [diff] |
smb-lib: fix Type-C detection after sink removal A misplaced return statement causes an early return from disabling OTG. If OTG is enabled when a source is attached then Type-C detection will fail. Therefore, OTG should never be blocked from being disabled. Remove all of the early returns that could potentially block the register write which disables OTG. Change-Id: I4645210233c7490cf3e1b8f6a629fec60399b250 Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>