]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mfd: palmas: Reset the POWERHOLD mux during power off
authorKeerthy <j-keerthy@ti.com>
Thu, 10 Nov 2016 05:09:18 +0000 (10:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 09:57:34 +0000 (10:57 +0100)
commitc9d6765b5747a0569fe7e09550fca0e54e09b477
treec7b5f22ef24927b46304dd3727ae8e7260ab4344
parent354ae15a58fb7fc325956c3930d9c4f879f07e70
mfd: palmas: Reset the POWERHOLD mux during power off

[ Upstream commit 85fdaf8eb9bbec1f0f8a52fd5d85659d60738816 ]

POWERHOLD signal has higher priority  over the DEV_ON bit.
So power off will not happen if the POWERHOLD is held high.
Hence reset the MUX to GPIO_7 mode to release the POWERHOLD
and the DEV_ON bit to take effect to power off the PMIC.

PMIC Power off happens in dire situations like thermal shutdown
so irrespective of the POWERHOLD setting go ahead and turn off
the powerhold.  Currently poweroff is broken on boards that have
powerhold enabled. This fixes poweroff on those boards.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/palmas.c