]> git.dujemihanovic.xyz Git - u-boot.git/commit
rtc: i2c_rtc_emul: catch any write to the "reset" register
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Mon, 6 Jul 2020 20:01:17 +0000 (22:01 +0200)
committerHeiko Schocher <hs@denx.de>
Thu, 9 Jul 2020 04:02:45 +0000 (06:02 +0200)
commita3e36525a9b853c09d5f5726eff3641cd0cb5619
treefce44af50afc1135607f856839827ac4dd62fd8c
parent9fb6a41cdaa743c98b007c6769970b68c9521cd7
rtc: i2c_rtc_emul: catch any write to the "reset" register

It's more natural that any write that happens to touch the reset
register should cause a reset, rather than just a write that starts at
that offset.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
drivers/rtc/i2c_rtc_emul.c