]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6
authorChen-Yu Tsai <wens@csie.org>
Fri, 29 Sep 2017 03:25:08 +0000 (11:25 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Oct 2017 10:48:21 +0000 (11:48 +0100)
commit3b4514ecc6b845fd0d334c17e00c48b2ec997acf
tree27fd67cc20b3c72fb39e8e0e709ce978bb4eab3c
parent384fde7ed224f283f11ef2a592b05d4a29492aa8
regulator: axp20x: Fix poly-phase bit offset for AXP803 DCDC5/6

The bit offset used to check if DCDC5 and DCDC6 are tied together in
poly-phase output is wrong. It was checking against a reserved bit,
which is always false.

In reality, neither the reference design layout nor actually produced
boards tie these two buck regulators together. But we should still
fix it, just in case.

Fixes: 34b0f24cba9e ("regulator: axp20x-regulator: add support for AXP803")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c