summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2010-06-16 21:49:13 +0530
committerGary King <gking@nvidia.com>2010-06-16 09:25:06 -0700
commit867a0f02241ffa7849f98bc65d39e72a6f764879 (patch)
treefb521e9b2d64d7961979ccfb7f0dde80b5d6a7a9 /drivers
parent25a71aee7f0fabe764a00d9cb5ab28530b40a8d4 (diff)
[arm/tegra] hsuart: Fixing parity setting issue.
It is observed that parity is getting configured properly on set_termio() but immediately get reset before setting the wordlen. Fixing this issue by not resetting the parity configuartion once it is configured. Change-Id: Ie815adc20e883ba05245f6dd2e93b5d0cd81845a Reviewed-on: http://git-master/r/2760 Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com> Tested-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/tegra_hsuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/tegra_hsuart.c b/drivers/serial/tegra_hsuart.c
index a39877cb3b64..77fc79037b62 100644
--- a/drivers/serial/tegra_hsuart.c
+++ b/drivers/serial/tegra_hsuart.c
@@ -985,7 +985,7 @@ static void tegra_set_termios(struct uart_port *u, struct ktermios *termios,
}
}
- lcr &= UART_LCR_WLEN8;
+ lcr &= ~UART_LCR_WLEN8;
switch (c_cflag & CSIZE) {
case CS5:
lcr |= UART_LCR_WLEN5;