Hi,
with this patch bttv detects the IRQ properly
when it had to be assigned by the PCI subsystem.

Gerd, please apply.

Regards, Gunther

Before:
-------
Dec 13 21:11:32 mc kernel: PCI: Enabling device 00:0a.0 (0004 -> 0006)
Dec 13 21:11:32 mc kernel: PCI: Assigned IRQ 11 for device 00:0a.0
Dec 13 21:11:32 mc kernel: PCI: Sharing IRQ 11 with 00:0a.1
Dec 13 21:11:32 mc kernel: bttv1: Bt878 (rev 17) at 00:0a.0, irq: 0, latency: 32, 
memory: 0xe1000000
                                                             ^^^^^^
Dec 13 21:11:32 mc kernel: bttv1: using: BT878( *** UNKNOWN/GENERIC **) 
[card=0,autodetected]
Dec 13 21:11:32 mc kernel: bttv1: IRQ 0 busy, change your PnP config in BIOS

After:
------
Dec 13 21:22:21 mc kernel: PCI: Enabling device 00:0a.0 (0004 -> 0006)
Dec 13 21:22:21 mc kernel: PCI: Assigned IRQ 11 for device 00:0a.0
Dec 13 21:22:21 mc kernel: PCI: Sharing IRQ 11 with 00:0a.1
Dec 13 21:22:21 mc kernel: bttv1: Bt878 (rev 17) at 00:0a.0, irq: 11, latency: 32, 
memory: 0xe1000000
                                                             ^^^^^^^
Dec 13 21:22:21 mc kernel: bttv1: using: BT878( *** UNKNOWN/GENERIC **) 
[card=0,autodetected]

Patch:
------
--- bttv-0.7.87/driver/bttv-driver.c    Thu Dec  6 12:09:30 2001
+++ bttv0787/driver/bttv-driver.c       Thu Dec 13 21:20:06 2001
@@ -2979,10 +2979,11 @@
        memcpy(&btv->radio_dev,&radio_template,sizeof(radio_template));
 
         btv->id=dev->device;
-        btv->irq=dev->irq;
        btv->bt848_adr=pci_resource_start(dev,0);
        if (pci_enable_device(dev))
                return -EIO;
+       btv->irq=dev->irq;
+
        if (!request_mem_region(pci_resource_start(dev,0),
                                pci_resource_len(dev,0),
                                "bttv")) {

Attachment: gmdiff-bttv0787-PCI-irq
Description: Binary data

Reply via email to