-
由 Nicolas Boullis 提交于
If a previously-set alarm was disabled and then triggered, it may still be pending when a new alarm is configured. Then, if the alarm is enabled before the pending alarm is cleared, then an interrupt is immediately raised. Unfortunately, when the alarm is cleared and enabled during the same I²C block write, the chip (at least the DS1339 I have) considers that the alarm is enabled before it is cleared, and raises an interrupt. This patch ensures that the pending alarm is cleared before the alarm is enabled. Signed-off-by: NNicolas Boullis <nboullis@debian.org> Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
5919fb97