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

Commit d7abae70 authored by Umang Agrawal's avatar Umang Agrawal Committed by Guru Das Srinagesh
Browse files

power: smb5: Fix HVDCP detection configuration for non-PD design



Update HVDCP configuration logic to keep HVDCP detection always enabled
for non-PD design.

Change-Id: Ic9aa3d31b916421546b44842b4171464f41e41f8
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent 1aa6f13c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -904,7 +904,7 @@ void smblib_hvdcp_detect_enable(struct smb_charger *chg, bool enable)
	int rc;
	u8 mask;

	if (chg->hvdcp_disable)
	if (chg->hvdcp_disable || chg->pd_not_supported)
		return;

	mask = HVDCP_AUTH_ALG_EN_CFG_BIT | HVDCP_EN_BIT;