aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/bfin_5xx.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index ab583ef3a305..64603f5bb703 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -828,8 +828,16 @@ bfin_serial_set_termios(struct uart_port *port, struct ktermios *termios,
828 __func__); 828 __func__);
829 } 829 }
830 830
831 if (termios->c_cflag & CSTOPB) 831 /* Anomaly notes:
832 lcr |= STB; 832 * 05000231 - STOP bit is always set to 1 whatever the user is set.
833 */
834 if (termios->c_cflag & CSTOPB) {
835 if (ANOMALY_05000231)
836 printk(KERN_WARNING "STOP bits other than 1 is not "
837 "supported in case of anomaly 05000231.\n");
838 else
839 lcr |= STB;
840 }
833 if (termios->c_cflag & PARENB) 841 if (termios->c_cflag & PARENB)
834 lcr |= PEN; 842 lcr |= PEN;
835 if (!(termios->c_cflag & PARODD)) 843 if (!(termios->c_cflag & PARODD))