Messages in this thread | | | Date | Thu, 31 May 2018 11:41:01 +0200 | From | Alexandre Belloni <> | Subject | Re: [PATCH] rtc: sprd: Add new RTC power down check method |
| |
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@linaro.org> > --- > 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
| |