X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/8c72b797b421258e17ad6f7afcbc2ab9105e8dc8..e3101f5c1df3cce83656d99342cb2f36c1ba4329:/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c?ds=sidebyside diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c index eb32de031..a32ea8d44 100644 --- a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c +++ b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq-pci.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #define VLYNQ_PCI_SLOTS 2 @@ -61,6 +62,7 @@ static struct vlynq_pci_config known_devices[] = { { .size = 0x0, .offset = 0x0 }, }, .irq = 0, .chip = 0x9066104c, + .irq_type = IRQ_TYPE_EDGE_RISING, .class = PCI_CLASS_NETWORK_OTHER, .num_regs = 5, .regs = { @@ -313,6 +315,8 @@ static int vlynq_pci_probe(struct vlynq_device *dev) vlynq_set_local_mapping(dev, dev->mem_start, mapping); vlynq_set_remote_mapping(dev, 0, config->rx_mapping); + set_irq_type(vlynq_virq_to_irq(dev, config->irq), config->irq_type); + addr = (u32)ioremap_nocache(dev->mem_start, 0x10000); if (!addr) { printk(KERN_ERR "%s: failed to remap io memory\n",