Messages in this thread Patch in this message | | | Subject | RE: [PATCH] Fix for spurious interrupts on e100 resume | Date | Thu, 30 Sep 2004 09:26:01 -0700 | From | "Venkatesan, Ganesh" <> |
| |
Andrew:
I propose that we remove this patch from the -mm tree. We will work on a clean solution and send a patch soon. Please see further discussion on this under the subject "2.6.9-rc2-mm4 e100 enable_irq unbalanced from"
Ganesh.
-----Original Message----- From: Jeremy Fitzhardinge [mailto:jeremy@goop.org] Sent: Monday, September 13, 2004 3:53 PM To: Ronciak, John Cc: Venkatesan, Ganesh; Feldman, Scott; Andrew Morton; linux-kernel Subject: Re: [PATCH] Fix for spurious interrupts on e100 resume
On Thu, 2004-09-09 at 15:36 -0700, Jeremy Fitzhardinge wrote: > I've been having problems with spurious interrupts being raised when the > e100 driver resets the chip during a resume:
OK, that patch didn't really work terribly well - the interrupt still happens. I've changed it to simply disable the interrupt during e100_up (), which does seem to work properly.
J
On resume, the e100 chip seems to raise an interrupt during chip reset. Since there's no IRQ handler registered yet, the kernel complains that "nobody cared" about the interrupt. This change disables the IRQ during e100_up(), while the hardware is being (re-)initialized.
drivers/net/e100.c | 6 ++++++ 1 files changed, 6 insertions(+)
diff -puN drivers/net/e100.c~e100-restore-irq drivers/net/e100.c --- local-2.6/drivers/net/e100.c~e100-restore-irq 2004-09-13 13:38:27.000000000 -0700 +++ local-2.6-jeremy/drivers/net/e100.c 2004-09-13 13:38:28.075416972 -0700 @@ -1678,6 +1678,9 @@ static int e100_up(struct nic *nic) if((err = e100_rx_alloc_list(nic))) return err; + + disable_irq(nic->pdev->irq); + if((err = e100_alloc_cbs(nic))) goto err_rx_clean_list; if((err = e100_hw_init(nic))) @@ -1689,6 +1692,7 @@ static int e100_up(struct nic *nic) nic->netdev->name, nic->netdev))) goto err_no_irq; e100_enable_irq(nic); + enable_irq(nic->pdev->irq); netif_wake_queue(nic->netdev); return 0; @@ -1698,6 +1702,8 @@ err_clean_cbs: e100_clean_cbs(nic); err_rx_clean_list: e100_rx_clean_list(nic); + + enable_irq(nic->pdev->irq); return err; } _ Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |