MIPS: loongson32: ls1c: Fix hang during startup
authorYang Ling <gnaygnil@gmail.com>
Tue, 23 Aug 2022 11:17:25 +0000 (19:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:39:46 +0000 (12:39 +0200)
[ Upstream commit 35508d2424097f9b6a1a17aac94f702767035616 ]

The RTCCTRL reg of LS1C is obselete.
Writing this reg will cause system hang.

Fixes: 60219c563c9b6 ("MIPS: Add RTC support for Loongson1C board")
Signed-off-by: Yang Ling <gnaygnil@gmail.com>
Tested-by: Keguang Zhang <keguang.zhang@gmail.com>
Acked-by: Keguang Zhang <keguang.zhang@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/loongson32/ls1c/board.c

index a96bed5e3ea6025fe704fc951d4844250577ed3b..ac1c5e6572d5fe36d9a9791bca7046df93f1363c 100644 (file)
@@ -18,7 +18,6 @@ static struct platform_device *ls1c_platform_devices[] __initdata = {
 static int __init ls1c_platform_init(void)
 {
        ls1x_serial_set_uartclk(&ls1x_uart_pdev);
-       ls1x_rtc_set_extclk(&ls1x_rtc_pdev);
 
        return platform_add_devices(ls1c_platform_devices,
                                   ARRAY_SIZE(ls1c_platform_devices));