Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370855
b: refs/heads/master
c: 2b4a8bd
h: refs/heads/master
i:
  370853: f4fef3b
  370851: 24623d2
  370847: 93db292
v: v3
  • Loading branch information
Roy Zang authored and Kumar Gala committed Apr 3, 2013
1 parent 894c639 commit 408df02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ba6c1f1259af47c2dba09f78e71b7a1673ad635
refs/heads/master: 2b4a8bd242d2880b232d07105981a8d31e8bc262
10 changes: 5 additions & 5 deletions trunk/arch/powerpc/sysdev/fsl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static int setup_one_atmu(struct ccsr_pci __iomem *pci,
flags |= 0x10000000; /* enable relaxed ordering */

for (i = 0; size > 0; i++) {
unsigned int bits = min(__ilog2(size),
unsigned int bits = min(ilog2(size),
__ffs(pci_addr | phys_addr));

if (index + i >= 5)
Expand Down Expand Up @@ -218,7 +218,7 @@ static void setup_pci_atmu(struct pci_controller *hose,
out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12));
/* Enable, IO R/W */
out_be32(&pci->pow[j].powar, 0x80088000
| (__ilog2(hose->io_resource.end
| (ilog2(hose->io_resource.end
- hose->io_resource.start + 1) - 1));
}
}
Expand Down Expand Up @@ -283,7 +283,7 @@ static void setup_pci_atmu(struct pci_controller *hose,
}

sz = min(mem, paddr_lo);
mem_log = __ilog2_u64(sz);
mem_log = ilog2(sz);

/* PCIe can overmap inbound & outbound since RX & TX are separated */
if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) {
Expand Down Expand Up @@ -312,7 +312,7 @@ static void setup_pci_atmu(struct pci_controller *hose,
* SWIOTLB and access the full range of memory
*/
if (sz != mem) {
mem_log = __ilog2_u64(mem);
mem_log = ilog2(mem);

/* Size window up if we dont fit in exact power-of-2 */
if ((1ull << mem_log) != mem)
Expand Down Expand Up @@ -349,7 +349,7 @@ static void setup_pci_atmu(struct pci_controller *hose,
sz -= 1ull << mem_log;

if (sz) {
mem_log = __ilog2_u64(sz);
mem_log = ilog2(sz);
piwar |= (mem_log - 1);

out_be32(&pci->piw[win_idx].pitar, paddr >> 12);
Expand Down

0 comments on commit 408df02

Please sign in to comment.