[MIPS] Fix IP32 breakage
- suppress master aborts during config read - set io_map_base - only fixup end of iomem resource to avoid failing request_resource in serial driver - killed useless setting of crime_int bit, which caused wrong interrupts - use physcial address for serial port platform device and let 8250 driver do the ioremap Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
9cfacb790f
commit
c990081bf8
@@ -42,6 +42,10 @@ static int
|
||||
mace_pci_read_config(struct pci_bus *bus, unsigned int devfn,
|
||||
int reg, int size, u32 *val)
|
||||
{
|
||||
u32 control = mace->pci.control;
|
||||
|
||||
/* disable master aborts interrupts during config read */
|
||||
mace->pci.control = control & ~MACEPCI_CONTROL_MAR_INT;
|
||||
mace->pci.config_addr = mkaddr(bus, devfn, reg);
|
||||
switch (size) {
|
||||
case 1:
|
||||
@@ -54,6 +58,9 @@ mace_pci_read_config(struct pci_bus *bus, unsigned int devfn,
|
||||
*val = mace->pci.config_data.l;
|
||||
break;
|
||||
}
|
||||
/* ack possible master abort */
|
||||
mace->pci.error &= ~MACEPCI_ERROR_MASTER_ABORT;
|
||||
mace->pci.control = control;
|
||||
|
||||
DPRINTK("read%d: reg=%08x,val=%02x\n", size * 8, reg, *val);
|
||||
|
||||
|
Reference in New Issue
Block a user