Unverified Commit 45cc2141 authored by ChiYuan Huang's avatar ChiYuan Huang Committed by Mark Brown
Browse files

regulator: rtq2208: Correct buck group2 phase mapping logic



Correct buck group2 H and F mapping logic.

Cc: stable@vger.kernel.org
Reported-by: default avatarYoon Dong Min <dm.youn@telechips.com>
Fixes: 1742e7e9 ("regulator: rtq2208: Fix incorrect buck converter phase mapping")
Signed-off-by: default avatarChiYuan Huang <cy_huang@richtek.com>
Link: https://patch.msgid.link/8527ae02a72b754d89b7580a5fe7474d6f80f5c3.1764209258.git.cy_huang@richtek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ac3fd01e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -543,14 +543,14 @@ static int rtq2208_regulator_check(struct device *dev, int *num, int *regulator_

	switch (FIELD_GET(RTQ2208_MASK_BUCKPH_GROUP2, buck_phase)) {
	case 2:
		rtq2208_used_table[RTQ2208_BUCK_F] = true;
		rtq2208_used_table[RTQ2208_BUCK_H] = true;
		fallthrough;
	case 1:
		rtq2208_used_table[RTQ2208_BUCK_E] = true;
		fallthrough;
	case 0:
	case 3:
		rtq2208_used_table[RTQ2208_BUCK_H] = true;
		rtq2208_used_table[RTQ2208_BUCK_F] = true;
		fallthrough;
	default:
		rtq2208_used_table[RTQ2208_BUCK_G] = true;