projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: Fix LED active_low for the TL-WR1043ND board
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
pci
/
pci-ar71xx.c
diff --git
a/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
b/target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
index
711a109
..
b2d36ca
100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
+++ b/
target/linux/ar71xx/files/arch/mips/pci/pci-ar71xx.c
@@
-38,6
+38,7
@@
static void __iomem *ar71xx_pcicfg_base;
static DEFINE_SPINLOCK(ar71xx_pci_lock);
static void __iomem *ar71xx_pcicfg_base;
static DEFINE_SPINLOCK(ar71xx_pci_lock);
+static int ar71xx_pci_fixup_enable;
static inline void ar71xx_pci_delay(void)
{
static inline void ar71xx_pci_delay(void)
{
@@
-228,6
+229,9
@@
static void ar71xx_pci_fixup(struct pci_dev *dev)
{
u32 t;
{
u32 t;
+ if (!ar71xx_pci_fixup_enable)
+ return;
+
if (dev->bus->number != 0 || dev->devfn != 0)
return;
if (dev->bus->number != 0 || dev->devfn != 0)
return;
@@
-321,6
+325,7
@@
int __init ar71xx_pcibios_init(void)
/* clear bus errors */
(void)ar71xx_pci_be_handler(1);
/* clear bus errors */
(void)ar71xx_pci_be_handler(1);
+ ar71xx_pci_fixup_enable = 1;
register_pci_controller(&ar71xx_pci_controller);
return 0;
register_pci_controller(&ar71xx_pci_controller);
return 0;
This page took
0.023078 seconds
and
4
git commands to generate.