Skip to content

Commit

Permalink
sh: pci: Set the I/O port base to the SH7780 I/O window default.
Browse files Browse the repository at this point in the history
Presently the I/O port base isn't being set anywhere, which allows things
like generic_inl() to blow up. Fix this up to point at the PCI IO window.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Apr 17, 2009
1 parent c66c1d7 commit f1dcab7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/drivers/pci/pci-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ int __init sh7780_pcic_init(struct pci_channel *chan,
word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_FTO;
pci_write_reg(chan, word, SH4_PCICR);

__set_io_port_base(SH7780_PCI_IO_BASE);

return 0;
}

0 comments on commit f1dcab7

Please sign in to comment.