Thread (10 messages) 10 messages, 4 authors, 2012-09-16

Re: [PATCH 2/2] PCI: Provide a default pcibios_update_irq()

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2012-09-15 07:32:16
Also in: linux-arm-kernel, linux-mips, linux-pci, linux-sh, lkml, sparclinux

On Fri, Sep 14, 2012 at 10:44 PM, Thierry Reding
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/pci/setup-irq.c
+++ b/drivers/pci/setup-irq.c
@@ -17,6 +17,14 @@
 #include <linux/ioport.h>
 #include <linux/cache.h>

+void __devinit __weak pcibios_update_irq(struct pci_dev *dev, int irq)
+{
+#ifdef CONFIG_PCI_DEBUG
+       printk(KERN_DEBUG "PCI: Assigning IRQ %02d to %s\n", irq,
+              pci_name(dev));
pr_debug()?
Or even better, dev_dbg()?
+#endif
+       pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq);
+}
Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help