Skip to content

Commit

Permalink
ARM: 6712/1: SPEAr: replace readl(), writel() with relaxed versions i…
Browse files Browse the repository at this point in the history
…n uncompress.h

readl() and writel() calls the outer cache maintainance operations
which are not available during Linux uncompression. This patch replaces
readl() and writel() with readl_relaxed() and writel_relaxed() to avoid
the link time errors.

Reviewed-by: Stanley Miao <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
viresh kumar authored and Russell King committed Feb 21, 2011
1 parent d166135 commit ac1556b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/plat-spear/include/plat/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ static inline void putc(int c)
{
void __iomem *base = (void __iomem *)SPEAR_DBG_UART_BASE;

while (readl(base + UART01x_FR) & UART01x_FR_TXFF)
while (readl_relaxed(base + UART01x_FR) & UART01x_FR_TXFF)
barrier();

writel(c, base + UART01x_DR);
writel_relaxed(c, base + UART01x_DR);
}

static inline void flush(void)
Expand Down

0 comments on commit ac1556b

Please sign in to comment.