Skip to content

Commit

Permalink
imx: serial: be sure to stop xmit upon shutdown
Browse files Browse the repository at this point in the history
needed to avoid continued transmission by hardware
while software already shuts down, which might
cause dangling characters to show up in hardware
queues when restarting the device.

Signed-off-by: Fabian Godehardt <fg@emlix.com>
Signed-off-by: Oskar Schirmer <os@emlix.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
ef-ge authored and torvalds committed Jun 11, 2009
1 parent 9777573 commit 2e14639
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,10 @@ static void imx_shutdown(struct uart_port *port)
struct imx_port *sport = (struct imx_port *)port;
unsigned long temp;

temp = readl(sport->port.membase + UCR2);
temp &= ~(UCR2_TXEN);
writel(temp, sport->port.membase + UCR2);

/*
* Stop our timer.
*/
Expand Down

0 comments on commit 2e14639

Please sign in to comment.