aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-generic.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2019-01-21 12:09:30 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-01-22 18:34:42 +0100
commit5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f (patch)
treef8be6feae309e045dcda0bb8c8be81ed82a1c07e /drivers/rtc/rtc-generic.c
parentrtc: sd3078: make symbol 'sd3078_driver' static (diff)
downloadlinux-dev-5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f.tar.xz
linux-dev-5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f.zip
rtc: s3c: Rewrite clock handling
s3c_rtc_enable/disable_clk() functions were designed to be called multiple times without reference counting, because they were initially only used in alarm setting/clearing functions, which can be called both when alarm is already set or not. Later however, calls to those functions have been added to other places in the driver - like time and /proc reading callbacks, what results in broken alarm if any of such events happens after the alarm has been set. Fix this by simplifying s3c_rtc_enable/disable_clk() functions to rely on proper reference counting in clock core and move alarm enable counter to s3c_rtc_setaie() function. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-generic.c')
0 files changed, 0 insertions, 0 deletions