From 7fb6d4ef44b22a1d2291c6eff73e28d6cf2b425e Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Fri, 26 May 2017 15:36:16 +0900 Subject: [PATCH] [COMMON] watchdog: s3c2410_wdt: fix panic handler owner to cluster 0 This patch fixes to assign panic handler to cluster 1. only cluster 0 should run emergency reset. Change-Id: I569624baec898c5a52cd3e3672383de3e64f1f09 Signed-off-by: Hosung Kim --- drivers/watchdog/s3c2410_wdt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 714b4239aa82..abeec8bd6b8a 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -939,17 +939,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev) /* print out a statement of readiness */ wtcon = readl(wdt->reg_base + S3C2410_WTCON); - if (cluster_index == LITTLE_CLUSTER) + if (cluster_index == LITTLE_CLUSTER) { register_syscore_ops(&s3c2410wdt_syscore_ops); #ifdef CONFIG_EXYNOS_SNAPSHOT_WATCHDOG_RESET /* register panic handler for watchdog reset */ - if (cluster_index == BIG_CLUSTER) { wdt_block.nb_panic_block.notifier_call = s3c2410wdt_panic_handler; wdt_block.wdt = wdt; atomic_notifier_chain_register(&panic_notifier_list, &wdt_block.nb_panic_block); - } #endif + } dev_info(dev, "watchdog cluster %d, %sactive, reset %sabled, irq %sabled\n", cluster_index, (wtcon & S3C2410_WTCON_ENABLE) ? "" : "in", (wtcon & S3C2410_WTCON_RSTEN) ? "en" : "dis", -- 2.20.1