Skip to content

Commit

Permalink
Merge tag 'ep93xx-fixes-for-3.9-rc5' of git://github.com/RyanMallon/l…
Browse files Browse the repository at this point in the history
…inux-ep93xx into fixes

From Ryan Mallon <rmallon@gmail.com>:

It is a regression fix for some ep93xx boards which are failing to boot
on current mainline. The patch has been tested in next over the last
few days.

* tag 'ep93xx-fixes-for-3.9-rc5' of git://github.com/RyanMallon/linux-ep93xx:
  ARM: ep93xx: Fix wait for UART FIFO to be empty

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Arnd Bergmann committed Mar 28, 2013
2 parents fb5d932 + 605c357 commit d5b1598
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions arch/arm/mach-ep93xx/include/mach/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ static void __raw_writel(unsigned int value, unsigned int ptr)

static inline void putc(int c)
{
/* Transmit fifo not full? */
while (__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF)
;
int i;

for (i = 0; i < 10000; i++) {
/* Transmit fifo not full? */
if (!(__raw_readb(PHYS_UART_FLAG) & UART_FLAG_TXFF))
break;
}

__raw_writeb(c, PHYS_UART_DATA);
}
Expand Down

0 comments on commit d5b1598

Please sign in to comment.