Re: [PATCH 2/7] LoongArch: Enable LS2X RTC in loongson3_defconfig

From
Huacai Chen <chenhuacai@kernel.org>
Date
2022-09-03 14:20:16
Also in
linux-acpi, linux-mips, linux-rtc, loongarch
Reply to
Xi Ruoyao, 2022-09-03
Hi, Ruoyao,

On Sat, Sep 3, 2022 at 6:45 PM Xi Ruoyao [off-list ref] wrote:
On Sat, 2022-09-03 at 17:34 +0800, Binbin Zhou wrote:
quoted
This is now supported, enable for Loongson-3 systems.
Other systems are unaffected.

Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: WANG Xuerui <redacted>
Cc: <redacted>
---
 arch/loongarch/configs/loongson3_defconfig | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/loongarch/configs/loongson3_defconfig
b/arch/loongarch/configs/loongson3_defconfig
index 4083d3051109..b240bc4e2021 100644
--- a/arch/loongarch/configs/loongson3_defconfig
+++ b/arch/loongarch/configs/loongson3_defconfig
@@ -660,6 +660,7 @@ CONFIG_USB_GADGET=y
 CONFIG_INFINIBAND=m
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_EFI=y
+CONFIG_RTC_DRV_LS2X=y
We already have RTC_DRV_EFI=y, IIUC this means we leave LS7A RTC for the
firmware to drive and operate it through EFI service.  So is this really
needed for LoongArch systems?  And if we enable both RTC_DRV_EFI and
RTC_DRV_LS2X, will some bad thing (a conflict) happen?
Don't worry, please. EFI RTC depends on EFI runtime, so we need an
available RTC if EFI runtime is disabled (by command line or any other
reasons). On the other hand, multi RTCs can perfectly co-exist, they
will be rtc0 and rtc1 under sysfs and rtc0 is the default one.

Huacai
--
Xi Ruoyao [off-list ref]
School of Aerospace Science and Technology, Xidian University
Thread (11 messages) 11 messages, 3 authors, last reply 2022-09-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help