Skip to content
Browse files

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

This reverts commit 4a0a556.
  • Loading branch information...
1 parent e6b8622 commit 2b039107863998de874b555a9e5af921792370e5 @popcornmix popcornmix committed
Showing with 0 additions and 6 deletions.
  1. +0 −6 drivers/tty/serial/amba-pl011.c
View
6 drivers/tty/serial/amba-pl011.c
@@ -1394,11 +1394,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.
*/
cr = UART01x_CR_UARTEN | UART011_CR_TXE | UART011_CR_LBE;
@@ -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.
Something went wrong with that request. Please try again.