Permalink
Browse files

Revert "amba-pl011: Don't send a character during startup"

This reverts commit 4a0a556.
  • Loading branch information...
popcornmix committed Aug 21, 2012
1 parent e6b8622 commit 2b039107863998de874b555a9e5af921792370e5
Showing with 0 additions and 6 deletions.
  1. +0 −6 drivers/tty/serial/amba-pl011.c
@@ -1393,11 +1393,6 @@ static int pl011_startup(struct uart_port *port)
writew(uap->vendor->ifls, uap->port.membase + UART011_IFLS);
- /*
- * The write to UART01x_DR causes a corrupted character to be sent
- * - why is it required?
- */
-#if 0
/*
* Provoke TX FIFO interrupt into asserting.
*/
@@ -1419,7 +1414,6 @@ static int pl011_startup(struct uart_port *port)
writew(0, uap->port.membase + UART01x_DR);
while (readw(uap->port.membase + UART01x_FR) & UART01x_FR_BUSY)
barrier();
-#endif
cr = UART01x_CR_UARTEN | UART011_CR_RXE | UART011_CR_TXE;
writew(cr, uap->port.membase + UART011_CR);

0 comments on commit 2b03910

Please sign in to comment.