[ifxmips] adds dsl support, thank you infineon/lantiq
[openwrt.git] / target / linux / ifxmips / files / arch / mips / pci / ops-ifxmips.c
index 3eb2582..fde6357 100644 (file)
@@ -4,10 +4,11 @@
 #include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/mm.h>
-#include <asm/ifxmips/ifxmips.h>
-#include <asm/ifxmips/ifxmips_irq.h>
 #include <asm/addrspace.h>
 #include <linux/vmalloc.h>
+#include <ifxmips.h>
+#include <ifxmips_irq.h>
+#include <ifxmips_ebu.h>
 
 #define IFXMIPS_PCI_CFG_BUSNUM_SHF 16
 #define IFXMIPS_PCI_CFG_DEVNUM_SHF 11
@@ -33,7 +34,7 @@ ifxmips_pci_config_access(unsigned char access_type,
                        || ((devfn & 0xf8) == 0) || ((devfn & 0xf8) == 0x68))
                return 1;
 
-       local_irq_save(flags);
+       spin_lock_irqsave(&ebu_lock, flags);
 
        cfg_base = ifxmips_pci_mapped_cfg;
        cfg_base |= (bus->number << IFXMIPS_PCI_CFG_BUSNUM_SHF) | (devfn <<
@@ -64,7 +65,7 @@ ifxmips_pci_config_access(unsigned char access_type,
        cfg_base = (ifxmips_pci_mapped_cfg | (0x68 << IFXMIPS_PCI_CFG_FUNNUM_SHF)) + 4;
        ifxmips_w32(temp, ((u32*)cfg_base));
 
-       local_irq_restore(flags);
+       spin_unlock_irqrestore(&ebu_lock, flags);
 
        if (((*data) == 0xffffffff) && (access_type == PCI_ACCESS_READ))
                return 1;
This page took 0.031186 seconds and 4 git commands to generate.