Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=85c93fa95b8fa8dabc6d14c77eb9a9c2e9753ecc
Commit:     85c93fa95b8fa8dabc6d14c77eb9a9c2e9753ecc
Parent:     6ad1ccc196f76833f41b187e01a28a024fe11f8b
Author:     Jiri Slaby <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:36:23 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:15:24 2007 -0700

    Char: cyclades, clear interrupts before releasing
    
    Without this patch, the driver sometimes causes "IRQXX: Nobody cares".  Fix 
it
    by turning off irqs when releasing.
    
    Signed-off-by: Jiri Slaby <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 drivers/char/cyclades.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c
index 4434c13..353e888 100644
--- a/drivers/char/cyclades.c
+++ b/drivers/char/cyclades.c
@@ -5341,6 +5341,17 @@ static void __devexit cy_pci_release(struct pci_dev 
*pdev)
        struct cyclades_card *cinfo = pci_get_drvdata(pdev);
        unsigned int i;
 
+       /* non-Z with old PLX */
+       if (cinfo->num_chips != -1 && (readb(cinfo->base_addr + CyPLX_VER) &
+                               0x0f) == PLX_9050)
+               cy_writeb(cinfo->ctl_addr + 0x4c, 0);
+       else
+#ifndef CONFIG_CYZ_INTR
+               if (cinfo->num_chips != -1)
+#endif
+               cy_writew(cinfo->ctl_addr + 0x68,
+                               readw(cinfo->ctl_addr + 0x68) & ~0x0900);
+
        pci_iounmap(pdev, cinfo->base_addr);
        if (cinfo->ctl_addr)
                pci_iounmap(pdev, cinfo->ctl_addr);
@@ -5560,6 +5571,8 @@ static void __exit cy_cleanup_module(void)
                                cy_pci_release(cy_card[i].pdev);
                                continue;
                        }
+                       /* clear interrupt */
+                       cy_writeb(cy_card[i].base_addr + Cy_ClrIntr, 0);
                        iounmap(cy_card[i].base_addr);
                        if (cy_card[i].ctl_addr)
                                iounmap(cy_card[i].ctl_addr);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to