]> 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)
commit03fe2b83d712d01722576f7b313158fe6f724579
tree27fd67cc20b3c72fb39e8e0e709ce978bb4eab3c
parent2018862bdad13479b663e0e9615d7c6fcaa89285
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: 38ff4a38e87e ("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