Commit d471d340 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

68360serial: remove broken optimisation

Remove the broken 'no termios change' optimisation for this driver.
Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Cc: Greg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent de1764af
...@@ -934,8 +934,6 @@ static void change_speed(ser_info_t *info) ...@@ -934,8 +934,6 @@ static void change_speed(ser_info_t *info)
/* /*
* Set up parity check flag * Set up parity check flag
*/ */
#define RELEVANT_IFLAG(iflag) (iflag & (IGNBRK|BRKINT|IGNPAR|PARMRK|INPCK))
info->read_status_mask = (BD_SC_EMPTY | BD_SC_OV); info->read_status_mask = (BD_SC_EMPTY | BD_SC_OV);
if (I_INPCK(info->tty)) if (I_INPCK(info->tty))
info->read_status_mask |= BD_SC_FR | BD_SC_PR; info->read_status_mask |= BD_SC_FR | BD_SC_PR;
...@@ -1527,11 +1525,6 @@ static void rs_360_set_termios(struct tty_struct *tty, struct ktermios *old_term ...@@ -1527,11 +1525,6 @@ static void rs_360_set_termios(struct tty_struct *tty, struct ktermios *old_term
{ {
ser_info_t *info = (ser_info_t *)tty->driver_data; ser_info_t *info = (ser_info_t *)tty->driver_data;
if ( (tty->termios->c_cflag == old_termios->c_cflag)
&& ( RELEVANT_IFLAG(tty->termios->c_iflag)
== RELEVANT_IFLAG(old_termios->c_iflag)))
return;
change_speed(info); change_speed(info);
#ifdef modem_control #ifdef modem_control
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment