Re: [PATCH] rtc: sprd: Add new RTC power down check method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31/05/2018 17:18:08+0800, Baolin Wang wrote:
> We should use the new method to check if RTC was powered down, which
> is more solid. Since we have introduced power control and power status
> registers, and we just check if the power status is the default value
> (0x96), if yes that means the RTC has been powered down. Meanwhile We
> can set the power control register to be one valid value to change
> the power status to indicate RTC device is valid now.
> 
> Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxx>
> ---
>  drivers/rtc/rtc-sc27xx.c |   47 +++++++++++++++++++++++-----------------------
>  1 file changed, 24 insertions(+), 23 deletions(-)
> 
Applied, thanks.

-- 
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



[Index of Archives]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux