aboutsummaryrefslogtreecommitdiffstats
path: root/examples/aiger/demo.sh
Commit message (Expand)AuthorAgeFilesLines
* Added $assert/$assume support to AIGER back-endClifford Wolf2016-12-031-2/+2
* Added examples/aiger/Clifford Wolf2016-12-011-0/+14
CNS3xxx-Fix-PCI-cns3xxx_write_config.patch?id=8171cad5100fd67dff818701da1d8b4e1335b5e8'>033-CNS3xxx-Fix-PCI-cns3xxx_write_config.patch
blob: 3f5ab06ba5175007d31a3b9433df94e01eb74255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/arch/arm/mach-cns3xxx/pcie.c
+++ b/arch/arm/mach-cns3xxx/pcie.c
@@ -220,13 +220,13 @@ static void cns3xxx_write_config(struct
 	u32 mask = (0x1ull << (size * 8)) - 1;
 	int shift = (where % 4) * 8;
 
-	v = readl_relaxed(base + (where & 0xffc));
+	v = readl_relaxed(base);
 
 	v &= ~(mask << shift);
 	v |= (val & mask) << shift;
 
-	writel_relaxed(v, base + (where & 0xffc));
-	readl_relaxed(base + (where & 0xffc));
+	writel_relaxed(v, base);
+	readl_relaxed(base);
 }
 
 static void __init cns3xxx_pcie_hw_init(struct cns3xxx_pcie *cnspci)