Commit 02dc1467 authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Linus Torvalds

[PATCH] ppc64: Fix iSeries build (ouch !)

The move of iomap out of eeh inadvertently broke iSeries ...

Fixed like this.
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4aab1539
......@@ -55,6 +55,7 @@ extern int panic_timeout;
extern unsigned long iSeries_Base_Io_Memory;
extern struct iommu_table *tceTables[256];
extern unsigned long io_page_mask;
extern void iSeries_MmIoTest(void);
......@@ -196,6 +197,7 @@ void iSeries_pcibios_init(void)
PPCDBG(PPCDBG_BUSWALK, "iSeries_pcibios_init Entry.\n");
iSeries_IoMmTable_Initialize();
find_and_init_phbs();
io_page_mask = -1;
/* pci_assign_all_busses = 0; SFRXXX*/
PPCDBG(PPCDBG_BUSWALK, "iSeries_pcibios_init Exit.\n");
}
......
......@@ -256,10 +256,6 @@ static inline void eeh_memcpy_toio(volatile void __iomem *dest, const void *src,
#undef EEH_CHECK_ALIGN
#define MAX_ISA_PORT 0x10000
extern unsigned long io_page_mask;
#define _IO_IS_VALID(port) ((port) >= MAX_ISA_PORT || (1 << (port>>PAGE_SHIFT)) & io_page_mask)
static inline u8 eeh_inb(unsigned long port) {
u8 val;
if (!_IO_IS_VALID(port))
......
......@@ -33,6 +33,12 @@
extern unsigned long isa_io_base;
extern unsigned long pci_io_base;
extern unsigned long io_page_mask;
#define MAX_ISA_PORT 0x10000
#define _IO_IS_VALID(port) ((port) >= MAX_ISA_PORT || (1 << (port>>PAGE_SHIFT)) \
& io_page_mask)
#ifdef CONFIG_PPC_ISERIES
/* __raw_* accessors aren't supported on iSeries */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment