Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181152
b: refs/heads/master
c: 9762528
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Jan 29, 2010
1 parent b098522 commit f75956b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 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: abec86a80247ab3a40d2afc9c8e8c26efcab2391
refs/heads/master: 9762528f37ddc7071509dddb10e7b4b3b957fd01
14 changes: 0 additions & 14 deletions trunk/arch/sh/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,6 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
}
#endif

#ifdef CONFIG_SUPERH32
/*
* If we're on an SH7751 or SH7780 PCI controller, PCI memory is mapped
* at the end of the address space in a special non-translatable area.
*/
#define PCI_MEM_FIXED_START 0xfd000000
#define PCI_MEM_FIXED_END (PCI_MEM_FIXED_START + 0x01000000)

#define is_pci_memory_fixed_range(s, e) \
((s) >= PCI_MEM_FIXED_START && (e) < PCI_MEM_FIXED_END)
#else
#define is_pci_memory_fixed_range(s, e) (0)
#endif

/* Board-specific fixup routines. */
int pcibios_map_platform_irq(struct pci_dev *dev, u8 slot, u8 pin);

Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/sh/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ __ioremap_caller(unsigned long phys_addr, unsigned long size,
if (!size || last_addr < phys_addr)
return NULL;

/*
* If we're in the fixed PCI memory range, mapping through page
* tables is not only pointless, but also fundamentally broken.
* Just return the physical address instead.
*
* For boards that map a small PCI memory aperture somewhere in
* P1/P2 space, ioremap() will already do the right thing,
* and we'll never get this far.
*/
if (is_pci_memory_fixed_range(phys_addr, size))
return (void __iomem *)phys_addr;

/*
* Mappings have to be page-aligned
*/
Expand Down Expand Up @@ -125,9 +113,6 @@ static inline int iomapping_nontranslatable(unsigned long offset)
return 1;
#endif

if (is_pci_memory_fixed_range(offset, 0))
return 1;

return 0;
}

Expand Down

0 comments on commit f75956b

Please sign in to comment.