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

Commit ff509cf7 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

qcom: smb-lib: fix adapter allowance for PM660



Update the adapter allowance configuration from 5_TO_9V
continuous mode to 5_OR_9V discrete mode, this allows
hardware to detect Over-voltage for 5V adapter.

CRs-Fixed: 1104289
Change-Id: Ie43febb92e5a6e52ce17779d8cea91cbdd2011cb
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent c78ba94d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -489,7 +489,7 @@ static int smblib_set_adapter_allowance(struct smb_charger *chg,
		if (chg->smb_version == PM660_SUBTYPE) {
		if (chg->smb_version == PM660_SUBTYPE) {
			smblib_dbg(chg, PR_MISC, "voltage not supported=%d\n",
			smblib_dbg(chg, PR_MISC, "voltage not supported=%d\n",
					allowed_voltage);
					allowed_voltage);
			allowed_voltage = USBIN_ADAPTER_ALLOW_5V_TO_9V;
			allowed_voltage = USBIN_ADAPTER_ALLOW_5V_OR_9V;
		}
		}
		break;
		break;
	}
	}