Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/watchdog: Don't enable interrupt on PPC64 BookE

Critical interrupts are not handled on PPC64 BookE machines,
so when the first watchdog interrupt fires the machine will
freeze without a warning until it's rebooted by the second
watchdog trigger.
Plus, the interrupt isn't used anyway since the driver
expects a usermode app to ping the watchdog periodically.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>

authored by

Tudor Laurentiu and committed by
Scott Wood
3978bdb4 a16d8aa4

+8
+8
drivers/watchdog/booke_wdt.c
··· 138 138 val &= ~WDTP_MASK; 139 139 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(booke_wdt_period)); 140 140 141 + #ifdef CONFIG_PPC_BOOK3E_64 142 + /* 143 + * Crit ints are currently broken on PPC64 Book-E, so 144 + * just disable them for now. 145 + */ 146 + val &= ~TCR_WIE; 147 + #endif 148 + 141 149 mtspr(SPRN_TCR, val); 142 150 } 143 151