tty: sdio_uart: Fix termios handling
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:16:14 +0000 (13:16 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:06 +0000 (15:18 -0800)
Switching between two non standard baud rates fails because of the cflag
test. Do as we did elsewhere and just kill the "optimisation".

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mmc/card/sdio_uart.c

index 95027b03c6463ba3c45fbfea2e7f78f9c89159bb..2104397421346d54a56c30e983f4acba569f8599 100644 (file)
@@ -902,12 +902,6 @@ static void sdio_uart_set_termios(struct tty_struct *tty, struct ktermios *old_t
        struct sdio_uart_port *port = tty->driver_data;
        unsigned int cflag = tty->termios->c_cflag;
 
-#define RELEVANT_IFLAG(iflag)  ((iflag) & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
-
-       if ((cflag ^ old_termios->c_cflag) == 0 &&
-           RELEVANT_IFLAG(tty->termios->c_iflag ^ old_termios->c_iflag) == 0)
-               return;
-
        if (sdio_uart_claim_func(port) != 0)
                return;