Commit accfd35a authored by Chris Dearman's avatar Chris Dearman Committed by Ralf Baechle

MIPS: MTI: Fix accesses to device registers on MIPS boards

This fixes the remaining problems introduced by
f1974653 (incorrect access length &
byteswapping in bigendian mode)
Signed-off-by: default avatarChris Dearman <chris@mips.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 0f334a3e
...@@ -87,7 +87,7 @@ static inline int mips_pcibios_iack(void) ...@@ -87,7 +87,7 @@ static inline int mips_pcibios_iack(void)
dummy = BONITO_PCIMAP_CFG; dummy = BONITO_PCIMAP_CFG;
iob(); /* sync */ iob(); /* sync */
irq = readl((u32 *)_pcictrl_bonito_pcicfg); irq = __raw_readl((u32 *)_pcictrl_bonito_pcicfg);
iob(); /* sync */ iob(); /* sync */
irq &= 0xff; irq &= 0xff;
BONITO_PCIMAP_CFG = 0; BONITO_PCIMAP_CFG = 0;
......
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