]> git.ipfire.org Git - thirdparty/linux.git/commit
rtc: rzn1: Disable controller before initialization
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 26 May 2025 09:58:03 +0000 (11:58 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 1 Jun 2025 21:53:02 +0000 (23:53 +0200)
commita50f00cb87b1c69eb4a08ae5c79e9536da839dfd
treed2556a253af4f8b0b7bdcf63ce714b37e4d99cc7
parentae95a7e3214092900fc0688224626b203f95f165
rtc: rzn1: Disable controller before initialization

Datasheet says that the controller must be disabled before setting up
either SUBU or SCMP. This did not matter so far because the driver only
supported SUBU which was the default, too. It is good practice to follow
datasheet recommendations, though. It will also be needed because SCMP
mode will be added in a later patch.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20250526095801.35781-7-wsa+renesas@sang-engineering.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rzn1.c