Changeset 42498


Ignore:
Timestamp:
2014-09-12T08:52:46+02:00 (3 years ago)
Author:
blogic
Message:

atheros: ar2315-pci: remove odd locking in PCI config space access function

Caller (generic PCI code) already do proper locking so no need to add
another one here.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-3.14/105-ar2315_pci.patch

    r42497 r42498  
    88--- /dev/null 
    99+++ b/arch/mips/ar231x/pci.c 
    10 @@ -0,0 +1,233 @@ 
     10@@ -0,0 +1,229 @@ 
    1111+/* 
    1212+ * This program is free software; you can redistribute it and/or 
     
    2929+#include <linux/init.h> 
    3030+#include <linux/mm.h> 
    31 +#include <linux/spinlock.h> 
    3231+#include <linux/delay.h> 
    3332+#include <linux/irq.h> 
     
    4746+static int config_access(int devfn, int where, int size, u32 *ptr, bool write) 
    4847+{ 
    49 +       unsigned long flags; 
    5048+       int func = PCI_FUNC(devfn); 
    5149+       int dev = PCI_SLOT(devfn); 
     
    5856+ 
    5957+       /* Select Configuration access */ 
    60 +       local_irq_save(flags); 
    6158+       ar231x_mask_reg(AR2315_PCI_MISC_CONFIG, 0, AR2315_PCIMISC_CFG_SEL); 
    6259+       mb(); 
     
    9188+       /* Select Memory access */ 
    9289+       ar231x_mask_reg(AR2315_PCI_MISC_CONFIG, AR2315_PCIMISC_CFG_SEL, 0); 
    93 +       local_irq_restore(flags); 
    9490+ 
    9591+       return err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; 
Note: See TracChangeset for help on using the changeset viewer.