lkml.org 
[lkml]   [2019]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 2/2] mfd: rk808: Prepare rk805 for poweroff
On Fri, 07 Jun 2019, Stefan Mavrodiev wrote:

> RK805 has SLEEP signal, which can put the device into SLEEP or OFF
> mode. The default is SLEEP mode.
>
> However, when the kernel performs power-off (actually the ATF) the
> device will not go fully off and this will result in higher power
> consumption and inability to wake the device with RTC alarm.
>
> The solution is to enable pm_power_off_prepare function, which will
> configure SLEEP pin for OFF function.
>
> Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
> ---
> Change for v3:
> - Remove useless warning messages
> - Change poweroff error messages
> - Add explanation comments
> Changes for v2:
> - Move pm_pwroff_prep_fn to header
> - Check pm_power_off_prepare before make it NULL
>
> drivers/mfd/rk808.c | 50 +++++++++++++++++++++++++++------------
> include/linux/mfd/rk808.h | 1 +
> 2 files changed, 36 insertions(+), 15 deletions(-)

Applied, thanks.

--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

\
 
 \ /
  Last update: 2019-06-12 11:42    [W:0.041 / U:8.400 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site