Skip to content

Commit

Permalink
[PATCH] Fix IXP4xx watchdog errata workaround
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Deepak Saxena authored and Linus Torvalds committed Jan 5, 2006
1 parent 4da5cc2 commit 3adfd4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/watchdog/ixp4xx_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ static int __init ixp4xx_wdt_init(void)
unsigned long processor_id;

asm("mrc p15, 0, %0, cr0, cr0, 0;" : "=r"(processor_id) :);
if (!(processor_id & 0xf)) {
printk("IXP4XXX Watchdog: Rev. A0 CPU detected - "
if (!(processor_id & 0xf) && !cpu_is_ixp46x()) {
printk("IXP4XXX Watchdog: Rev. A0 IXP42x CPU detected - "
"watchdog disabled\n");

return -ENODEV;
Expand Down

0 comments on commit 3adfd4e

Please sign in to comment.