]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rtc: isl1208: Update correct procedure for clearing alarm
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 18 Jun 2024 15:26:31 +0000 (16:26 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 27 Jun 2024 22:34:21 +0000 (00:34 +0200)
commit43696b3a9e46cf622bfeb70856b9b1cfa5a9fb23
treec69625cc49154120c7003b9badfcc565480bbfab
parent0dbd610c426ed695eef5d26584259d96b6250c76
rtc: isl1208: Update correct procedure for clearing alarm

As per the latest HW manual[1], there is an internal delay(~250 microsec)
from setting ALME = 0 to disabling the alarm function, so the user must
add a short delay of greater than 250µs between setting ALME = 0 and
clearing ALM.

Currently setting of ALME = 0 is done after clearing the ALM, so just
reverse the operation and add a delay of 275 microsec.

[1]https://www.renesas.com/us/en/document/dst/raa215300-datasheet?r=1506351

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20240618152635.48956-3-biju.das.jz@bp.renesas.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl1208.c