projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
020f970
)
[ARM] Orion: fix bug in pcie configuration cycle function field mask
author
Saeed Bishara
<
[email protected]
>
Thu, 27 Nov 2008 17:21:03 +0000
(06:21 -1100)
committer
Nicolas Pitre
<
[email protected]
>
Tue, 2 Dec 2008 21:53:26 +0000
(16:53 -0500)
The function field is 3 bits.
Signed-off-by: Saeed Bishara <
[email protected]
>
Signed-off-by: Nicolas Pitre <
[email protected]
>
arch/arm/plat-orion/pcie.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-orion/pcie.c
b/arch/arm/plat-orion/pcie.c
index 883902fead8928f9ff24cdfd781fa28b3013470c..d41d41d78ad98676dea41aeb6466fb1ebf2bb811 100644
(file)
--- a/
arch/arm/plat-orion/pcie.c
+++ b/
arch/arm/plat-orion/pcie.c
@@
-35,7
+35,7
@@
#define PCIE_CONF_REG(r) ((((r) & 0xf00) << 16) | ((r) & 0xfc))
#define PCIE_CONF_BUS(b) (((b) & 0xff) << 16)
#define PCIE_CONF_DEV(d) (((d) & 0x1f) << 11)
-#define PCIE_CONF_FUNC(f) (((f) & 0x
3
) << 8)
+#define PCIE_CONF_FUNC(f) (((f) & 0x
7
) << 8)
#define PCIE_CONF_DATA_OFF 0x18fc
#define PCIE_MASK_OFF 0x1910
#define PCIE_CTRL_OFF 0x1a00