Re: [PATCH] Fix for spurious interrupts on e100 resume

From: Jeremy Fitzhardinge
Date: Thu Sep 09 2004 - 19:58:55 EST


On Thu, 2004-09-09 at 19:57 -0400, Nathan Bryant wrote:
> You sure this is right? The comment seems to imply that writing the
> reset command to the registers also clears the interrupt mask. So you
> might need to have the e100_disable_irq() both before and after the reset.

Good point - I'm not sure. I don't really know what would cause the
chip to raise an interrupt. Could it do it spontaneously, in which case
there's always a window between poking the selective/software_reset and
the disable_irq? Or is it that the chip raises an interrupt on reset,
which is masked by disabling the interrupt, but then it enables the
interrupt after the reset is complete? Or perhaps "it's unmasked after
reset" means "after a hardware reset (power cycle)" and not by poking
the reset registers.

Well, there was definitely a real bug there before, and it works with a
bit of testing. We'll see how it goes over the next few days (and maybe
someone who actually understands this hardware will weigh in).

J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/