Skip to content

Commit

Permalink
serial/imx: disable hardware flow control at startup
Browse files Browse the repository at this point in the history
We only want to enable hardware flow control if RTS/CTS pins
are connected.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Lucas Stach authored and Greg Kroah-Hartman committed Jun 3, 2013
1 parent e4aa937 commit bff09b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ static int imx_startup(struct uart_port *port)

temp = readl(sport->port.membase + UCR2);
temp |= (UCR2_RXEN | UCR2_TXEN);
if (!sport->have_rtscts)
temp |= UCR2_IRTS;
writel(temp, sport->port.membase + UCR2);

if (USE_IRDA(sport)) {
Expand Down

0 comments on commit bff09b0

Please sign in to comment.