diff options
author | John Crispin <blogic@openwrt.org> | 2014-09-12 06:52:46 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-09-12 06:52:46 +0000 |
commit | 1ded17c7b8646e99999c77ea5960cb4ac31d5d06 (patch) | |
tree | f5e7bf6dbfc69f697571e238266cc8877c19b628 /target/linux | |
parent | 9427a379f84e58b7b28a9ec401b69494a7834259 (diff) | |
download | upstream-1ded17c7b8646e99999c77ea5960cb4ac31d5d06.tar.gz upstream-1ded17c7b8646e99999c77ea5960cb4ac31d5d06.tar.bz2 upstream-1ded17c7b8646e99999c77ea5960cb4ac31d5d06.zip |
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@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42498 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/atheros/patches-3.14/105-ar2315_pci.patch | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch index 14862c9e5e..a4377eb1d6 100644 --- a/target/linux/atheros/patches-3.14/105-ar2315_pci.patch +++ b/target/linux/atheros/patches-3.14/105-ar2315_pci.patch @@ -7,7 +7,7 @@ +obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o --- /dev/null +++ b/arch/mips/ar231x/pci.c -@@ -0,0 +1,233 @@ +@@ -0,0 +1,229 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License @@ -28,7 +28,6 @@ +#include <linux/kernel.h> +#include <linux/init.h> +#include <linux/mm.h> -+#include <linux/spinlock.h> +#include <linux/delay.h> +#include <linux/irq.h> +#include <linux/io.h> @@ -46,7 +45,6 @@ + +static int config_access(int devfn, int where, int size, u32 *ptr, bool write) +{ -+ unsigned long flags; + int func = PCI_FUNC(devfn); + int dev = PCI_SLOT(devfn); + u32 value = 0; @@ -57,7 +55,6 @@ + return PCIBIOS_DEVICE_NOT_FOUND; + + /* Select Configuration access */ -+ local_irq_save(flags); + ar231x_mask_reg(AR2315_PCI_MISC_CONFIG, 0, AR2315_PCIMISC_CFG_SEL); + mb(); + @@ -90,7 +87,6 @@ + + /* Select Memory access */ + ar231x_mask_reg(AR2315_PCI_MISC_CONFIG, AR2315_PCIMISC_CFG_SEL, 0); -+ local_irq_restore(flags); + + return err ? PCIBIOS_DEVICE_NOT_FOUND : PCIBIOS_SUCCESSFUL; +} |