From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, kkeil@suse.de,
kai.germaschewski@gmx.de, isdn4linux@listserv.isdn4linux.de
Subject: [PATCH] hisax: don't look at pci_dev->irq before calling pci_enable_device()
Date: Mon, 13 Dec 2004 09:03:01 -0700 [thread overview]
Message-ID: <200412130903.02119.bjorn.helgaas@hp.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
The hisax driver looks at dev_avm->irq before calling pci_enable_device(),
which means it requests the wrong IRQ. This patch fixes it.
Thanks to Thorsten Doil for reporting the problem and testing the fix.
[-- Attachment #2: hisax-irq.patch --]
[-- Type: text/x-diff, Size: 961 bytes --]
The hisax driver looks at dev_avm->irq before calling pci_enable_device(),
which means it requests the wrong IRQ. This patch fixes it.
Thanks to Thorsten Doil for reporting the problem and testing the fix.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
===== drivers/isdn/hisax/avm_pci.c 1.48 vs edited =====
--- 1.48/drivers/isdn/hisax/avm_pci.c 2004-08-24 03:08:30 -06:00
+++ edited/drivers/isdn/hisax/avm_pci.c 2004-12-09 13:26:25 -07:00
@@ -794,13 +794,13 @@
#ifdef CONFIG_PCI
if ((dev_avm = pci_find_device(PCI_VENDOR_ID_AVM,
PCI_DEVICE_ID_AVM_A1, dev_avm))) {
+ if (pci_enable_device(dev_avm))
+ return(0);
cs->irq = dev_avm->irq;
if (!cs->irq) {
printk(KERN_ERR "FritzPCI: No IRQ for PCI card found\n");
return(0);
}
- if (pci_enable_device(dev_avm))
- return(0);
cs->hw.avm.cfg_reg = pci_resource_start(dev_avm, 1);
if (!cs->hw.avm.cfg_reg) {
printk(KERN_ERR "FritzPCI: No IO-Adr for PCI card found\n");
reply other threads:[~2004-12-13 16:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200412130903.02119.bjorn.helgaas@hp.com \
--to=bjorn.helgaas@hp.com \
--cc=akpm@osdl.org \
--cc=isdn4linux@listserv.isdn4linux.de \
--cc=kai.germaschewski@gmx.de \
--cc=kkeil@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®