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

[PATCH] Fix IXP4xx watchdog errata workaround

The IXP4xx driver bails out on all A0 CPUs, but it should only do
so on IXP42x as IXP46x has functioning HW.

Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Deepak Saxena and committed by
Linus Torvalds
3adfd4e2 4da5cc2c

+2 -2
+2 -2
drivers/char/watchdog/ixp4xx_wdt.c
··· 186 186 unsigned long processor_id; 187 187 188 188 asm("mrc p15, 0, %0, cr0, cr0, 0;" : "=r"(processor_id) :); 189 - if (!(processor_id & 0xf)) { 190 - printk("IXP4XXX Watchdog: Rev. A0 CPU detected - " 189 + if (!(processor_id & 0xf) && !cpu_is_ixp46x()) { 190 + printk("IXP4XXX Watchdog: Rev. A0 IXP42x CPU detected - " 191 191 "watchdog disabled\n"); 192 192 193 193 return -ENODEV;