Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;