diff options
author | Johan Hovold <jhovold@gmail.com> | 2014-01-02 16:49:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-03 15:42:24 -0500 |
commit | 7603381e3e7ffebe8c0b46c416fe0f88e13b4d34 (patch) | |
tree | c8b66a648938286fb1770f6b1eeb61f745d1606c /drivers/usb/serial/cypress_m8.c | |
parent | 2534be34c9f728759e7e7ba69bab9d3a5cbb5984 (diff) |
USB: cypress_m8: only wake up MSR queue on changes
Only wake up MSR wait queue on actual modem-status changes.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/cypress_m8.c')
-rw-r--r-- | drivers/usb/serial/cypress_m8.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 558605d646f3..07e003398613 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -1187,7 +1187,10 @@ static void cypress_read_int_callback(struct urb *urb) | |||
1187 | if (priv->current_status != priv->prev_status) { | 1187 | if (priv->current_status != priv->prev_status) { |
1188 | priv->diff_status |= priv->current_status ^ | 1188 | priv->diff_status |= priv->current_status ^ |
1189 | priv->prev_status; | 1189 | priv->prev_status; |
1190 | wake_up_interruptible(&port->port.delta_msr_wait); | 1190 | |
1191 | if (priv->diff_status & UART_MSR_MASK) | ||
1192 | wake_up_interruptible(&port->port.delta_msr_wait); | ||
1193 | |||
1191 | priv->prev_status = priv->current_status; | 1194 | priv->prev_status = priv->current_status; |
1192 | } | 1195 | } |
1193 | spin_unlock_irqrestore(&priv->lock, flags); | 1196 | spin_unlock_irqrestore(&priv->lock, flags); |