diff options
Diffstat (limited to 'drivers/tty/serial/mpc52xx_uart.c')
-rw-r--r-- | drivers/tty/serial/mpc52xx_uart.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c index bedac0d4c9ce..f19d04ed8586 100644 --- a/drivers/tty/serial/mpc52xx_uart.c +++ b/drivers/tty/serial/mpc52xx_uart.c | |||
@@ -775,11 +775,15 @@ mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, | |||
775 | } | 775 | } |
776 | 776 | ||
777 | if (new->c_cflag & PARENB) { | 777 | if (new->c_cflag & PARENB) { |
778 | if (new->c_cflag & CMSPAR) | ||
779 | mr1 |= MPC52xx_PSC_MODE_PARFORCE; | ||
780 | |||
781 | /* With CMSPAR, PARODD also means high parity (same as termios) */ | ||
778 | mr1 |= (new->c_cflag & PARODD) ? | 782 | mr1 |= (new->c_cflag & PARODD) ? |
779 | MPC52xx_PSC_MODE_PARODD : MPC52xx_PSC_MODE_PAREVEN; | 783 | MPC52xx_PSC_MODE_PARODD : MPC52xx_PSC_MODE_PAREVEN; |
780 | } else | 784 | } else { |
781 | mr1 |= MPC52xx_PSC_MODE_PARNONE; | 785 | mr1 |= MPC52xx_PSC_MODE_PARNONE; |
782 | 786 | } | |
783 | 787 | ||
784 | mr2 = 0; | 788 | mr2 = 0; |
785 | 789 | ||