Thread (7 messages) 7 messages, 3 authors, 2013-02-04
STALE4877d

[PATCH] rtc: pl031: fix the missing operation on enable

From: Linus Walleij <hidden>
Date: 2013-02-04 12:25:56

Hi Haojian, sorry for taking too long to reply...

On Wed, Jan 30, 2013 at 2:04 AM, Haojian Zhuang
[off-list ref] wrote:
RTC control register should be enabled in the process of initliazing.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
(...)
+       data = readl(ldata->base + RTC_CR);
        /* Enable the clockwatch on ST Variants */
        if (vendor->clockwatch)
-               writel(readl(ldata->base + RTC_CR) | RTC_CR_CWEN,
-                      ldata->base + RTC_CR);
+               data |= RTC_CR_CWEN;
+       writel(data | RTC_CR_EN, ldata->base + RTC_CR);
This last line is *not* OK on the ST Variant. In our hardware that bit
is part of the clock divider, which means it will affect our timekeeping.

Do you want me to submit a follow-up patch?

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help