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

Commit d8359aa1 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

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: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 3fc748c6
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