Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=699bc6614f4d5a68b8840d4d859e9ca205530a77
Commit:     699bc6614f4d5a68b8840d4d859e9ca205530a77
Parent:     d89ddd1c847637d91625c8cb6b0d064e1717057c
Author:     Markus Brunner <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 26 17:31:28 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Thu Jul 26 17:31:28 2007 +0900

    rtc: rtc-sh: Correct sh_rtc_set_time() for some SH-3 parts.
    
    Some SH-3 parts (SH7720 and SH7705 at least) need to have the
    start bit explicitly cleared, as the reset is not enough. This
    is safe across all parts, so simply clear the start bit in
    the sh_rtc_set_time() path.
    
    Signed-off-by: Markus Brunner <[EMAIL PROTECTED]>
    Signed-off by: Mark Jonas <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 drivers/rtc/rtc-sh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c
index e0f91df..93ee05e 100644
--- a/drivers/rtc/rtc-sh.c
+++ b/drivers/rtc/rtc-sh.c
@@ -365,6 +365,7 @@ static int sh_rtc_set_time(struct device *dev, struct 
rtc_time *tm)
        /* Reset pre-scaler & stop RTC */
        tmp = readb(rtc->regbase + RCR2);
        tmp |= RCR2_RESET;
+       tmp &= ~RCR2_START;
        writeb(tmp, rtc->regbase + RCR2);
 
        writeb(BIN2BCD(tm->tm_sec),  rtc->regbase + RSECCNT);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to