]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: tps65917/palmas: Add bypass "On" value
authorNishanth Menon <nm@ti.com>
Tue, 26 Apr 2016 16:36:42 +0000 (11:36 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Apr 2016 16:41:38 +0000 (17:41 +0100)
commit5e5618d962fca152fcf63f18f1be5edb0445839c
tree0635793e7c21174c96ae0afbe82ae9a46afff1dc
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
regulator: tps65917/palmas: Add bypass "On" value

When commit 5ac88efd546f ("regulator: tps65917/palmas: Add bypass
ops for LDOs with bypass capability") introduced bypass capability
to palmas regulator, it went with the assumption that regulator
regmap helpers just check val against the bypass_mask.

Unfortunately, this ignored the explicit "on" and "off" values when
the register value is masked with bypass_mask in commit 5dc48f5450ad
("regulator: helpers: Modify helpers enabling multi-bit control").

With the recent commit d81197d2792f ("regulator: helpers: Ensure
bypass register field matches ON value"), this issue gets highlighted
and fails tps65917/palmas based platforms which need regulators/ldos
that have bypass capability.

Introduce the bypass_on value appropriately for tps65917/palmas
regulator.

Fixes: 5ac88efd546f ("regulator: tps65917/palmas: Add bypass ops for LDOs with bypass capability")
Cc: Keerthy <j-keerthy@ti.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/palmas-regulator.c