Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba044173 authored by Nicholas Troast's avatar Nicholas Troast
Browse files

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: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 74e7bd58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment