]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3032: allow setting BSM
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:19:33 +0000 (17:19 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 18 Oct 2021 15:20:50 +0000 (17:20 +0200)
commitdfbbceeb56a5855712ad6a7e4ec009198ba98dc6
tree1d44d9cd084bcfc31100aac5669356557d3a7a2e
parent55e11a2e8646517b137f67f5bda4230bb376282b
rtc: rv3032: allow setting BSM

Backup Switch Mode is currently set properly when the trickle charger is
enabled. However, in the case of a non-rechargeable battery, it is
necessary to be able to enable it, only allow that when the trickle charger
is disabled.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018151933.76865-8-alexandre.belloni@bootlin.com
drivers/rtc/rtc-rv3032.c