power: qpnp-smb5: Update legacy cable detection logic in bootup
If the target is rebooted with standard USB Type-C cable connected,
it may be detected wrongly as legacy cable. Fix the wrong detection
by resetting TypeC mode. In addition, correct logic to avoid early
return when setting TypeC mode to NONE during probe, due to enum
value for NONE matching with uninitialized variable value of 0.
Change-Id: I84de500a33eb9fa82617422b03d7f277253846e6
Signed-off-by:
Jishnu Prakash <jprakash@codeaurora.org>
Loading
Please register or sign in to comment