hw/rtc/ls7a_rtc: Fix rtc enable and disable function
commit6935f132e595a03eb023b5e9a0703509b3f0c2a1
authorXiaojuan Yang <yangxiaojuan@loongson.cn>
Fri, 1 Jul 2022 09:34:01 +0000 (1 17:34 +0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 4 Jul 2022 05:38:58 +0000 (4 11:08 +0530)
tree35a1d601af0c10cd1b5261ea2b65ee95e1963a10
parente5c0367e2bbcf730e96614f63ea7575885fdde98
hw/rtc/ls7a_rtc: Fix rtc enable and disable function

Fix ls7a rtc enable and disable function. When rtc disabled, it do
not support to read or write, but the real time is still continue,
so we need not neither save the time nor update the rtc offset.

Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220701093407.2150607-6-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
hw/rtc/ls7a_rtc.c