aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2009-11-30 08:16:14 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 18:18:06 -0500
commit6238e712aff51ae74177cee5b2a63c0e37044e8f (patch)
tree24170779ab281aa8b438a3147ad052358339c5e9 /drivers/mmc/card
parent584abc3775e76c1a2abe725355915851ed23ed6c (diff)
tty: sdio_uart: Fix termios handling
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>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/sdio_uart.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c
index 95027b03c646..210439742134 100644
--- a/drivers/mmc/card/sdio_uart.c
+++ b/drivers/mmc/card/sdio_uart.c
@@ -902,12 +902,6 @@ static void sdio_uart_set_termios(struct tty_struct *tty, struct ktermios *old_t
902 struct sdio_uart_port *port = tty->driver_data; 902 struct sdio_uart_port *port = tty->driver_data;
903 unsigned int cflag = tty->termios->c_cflag; 903 unsigned int cflag = tty->termios->c_cflag;
904 904
905#define RELEVANT_IFLAG(iflag) ((iflag) & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
906
907 if ((cflag ^ old_termios->c_cflag) == 0 &&
908 RELEVANT_IFLAG(tty->termios->c_iflag ^ old_termios->c_iflag) == 0)
909 return;
910
911 if (sdio_uart_claim_func(port) != 0) 905 if (sdio_uart_claim_func(port) != 0)
912 return; 906 return;
913 907