• Nishanth Menon's avatar
    regulator: tps65917/palmas: Add bypass "On" value · e0341f17
    Nishanth Menon authored
    When commit b554e145 ("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 ca5d1b35
    ("regulator: helpers: Modify helpers enabling multi-bit control").
    
    With the recent commit dd1a571d ("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: b554e145 ("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: default avatarNishanth Menon <nm@ti.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    e0341f17
palmas-regulator.c 44.5 KB