]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: k3: wait until the unlock field is not zero
authorBryan Brattlof <bb@ti.com>
Tue, 16 Aug 2022 17:33:11 +0000 (12:33 -0500)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 23 Aug 2022 20:25:28 +0000 (22:25 +0200)
commitfad941c0b98ff7bff8b6fd89d8d7c7d79f7de623
treec172bf822230f5799042b7bdb673d9b34d775f8d
parentdde08ca9b15e402651f1610866f16d8276b38283
rtc: k3: wait until the unlock field is not zero

After writing the magic words to the KICK0 and KICK1 registers, we must
wait for a 1 in the unlock field of the general control register to
signify when the rtc device is in an unlocked state.

Signed-off-by: Bryan Brattlof <bb@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20220816173312.23243-1-bb@ti.com
drivers/rtc/rtc-ti-k3.c