]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: s3c: Disable all enable (RTC, tick) bits in the probe
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 2 Dec 2020 11:13:17 +0000 (12:13 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 Dec 2020 22:51:30 +0000 (23:51 +0100)
commit55ff09d60c1bceb8ab36f24d63e9d111777362d5
tree4389e6972a46d112b9726654a330d83ca154cb95
parent8e43014d9407838fc9538c35e11ebcf84862edb9
rtc: s3c: Disable all enable (RTC, tick) bits in the probe

Bootloader might use RTC hardware and leave it in the enabled state. Ensure
that the potentially enabled periodic tick interrupts are disabled before
enabling the driver, because they might cause lockup if tick interrupt
happens after disabling RTC gate clock.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201202111318.5353-1-m.szyprowski@samsung.com
drivers/rtc/rtc-s3c.c