]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/rtc/rtc-s3c.c: add .needs_src_clk to s3c6410 RTC data
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Thu, 12 Mar 2015 23:25:49 +0000 (16:25 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 28 Mar 2015 13:59:44 +0000 (09:59 -0400)
commit75391143ec736e21f6a77c1aa9b96cc67a98898f
tree92712a12ff1371e8b282cc92804768c9679cfd5c
parentaf6887e2100a5f053b2e07a0cc48f8dc6224653c
drivers/rtc/rtc-s3c.c: add .needs_src_clk to s3c6410 RTC data

[ Upstream commit 8792f7772f4f40ffc68bad5f28311205584b734d ]

Commit df9e26d093d3 ("rtc: s3c: add support for RTC of Exynos3250 SoC")
added an "rtc_src" DT property to specify the clock used as a source to
the S3C real-time clock.

Not all SoCs needs this so commit eaf3a659086e ("drivers/rtc/rtc-s3c.c:
fix initialization failure without rtc source clock") changed to check
the struct s3c_rtc_data .needs_src_clk to conditionally grab the clock.

But that commit didn't update the data for each IP version so the RTC
broke on the boards that needs a source clock. This is the case of at
least Exynos5250 and Exynos5440 which uses the s3c6410 RTC IP block.

This commit fixes the S3C rtc on the Exynos5250 Snow and Exynos5420
Peach Pit and Pi Chromebooks.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Cc: Doug Anderson <dianders@chromium.org>
Cc: Olof Johansson <olof@lixom.net>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Tyler Baker <tyler.baker@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/rtc/rtc-s3c.c