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

Commit fcc64608 authored by Ke Liu's avatar Ke Liu
Browse files

msm: cpr-regulator: fix a bug in supporting conditional minimum voltage



The current implementation for supporting VDD_APC minimum voltage is
mistakenly raising the minimum voltage when the mem-accel fuse has been
programmed. Hence change it to raise the minimum voltage if the mem-accel
fuse has not been programmed.

Change-Id: I045410c34fdc176378462a44c94efce40ac955ea
Signed-off-by: default avatarKe Liu <keliu@codeaurora.org>
parent c255ffa1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1485,7 +1485,7 @@ static void cpr_parse_cond_min_volt_fuse(struct cpr_regulator *cpr_vreg,
	if (!rc) {
		blown_data = cpr_read_efuse_row(cpr_vreg, fuse[0], fuse[3]);
		fuse_data = ((u64)fuse[1] << 32) | fuse[2];
		if (blown_data == fuse_data)
		if (blown_data != fuse_data)
			cpr_vreg->flags |= FLAGS_SET_MIN_VOLTAGE;
	}
}