]> git.baikalelectronics.ru Git - uboot.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)
commit88dd9e6104de57ad591eee2c06181d0cb72cfa0c
treefce44af50afc1135607f856839827ac4dd62fd8c
parentdf0df2b4b14c66929deed61128c36a73095ca129
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