summaryrefslogtreecommitdiff
path: root/crypto/sha1_generic.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2019-01-21 14:09:30 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-01-22 20:34:42 +0300
commit5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f (patch)
treef8be6feae309e045dcda0bb8c8be81ed82a1c07e /crypto/sha1_generic.c
parentf724c6bee162be3a9cd3b9168414ca106e0cdfe2 (diff)
downloadlinux-5a5b614ba61cc2a89ad0dffc63d913a1a6ba1f9f.tar.xz
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 'crypto/sha1_generic.c')
0 files changed, 0 insertions, 0 deletions