]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-pl031.c: fix the missing operation on enable
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Mon, 4 Feb 2013 22:28:54 +0000 (14:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Feb 2013 17:04:44 +0000 (09:04 -0800)
commitd0ae761cced817cbe1d7a34bd18f615869286f9e
treec3e56ea4bde92ec24321db25a8d37aa09822a95e
parentaec357f03412b4d2ca8d9a9019994b810bf64497
drivers/rtc/rtc-pl031.c: fix the missing operation on enable

commit e7e034e18a0ab6bafb2425c3242cac311164f4d6 upstream.

The RTC control register should be enabled in the process of
initializing.

Without this patch, I failed to enable RTC in Hisilicon Hi3620 SoC.  The
register mapping section in RTC is always read as zero.  So I doubt that
ST guys may already enable this register in bootloader.  So they won't
meet this issue.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-pl031.c