|
@@ -310,17 +310,17 @@ static void acm_process_notification(struct acm *acm, unsigned char *buf)
|
|
|
|
|
|
if (difference & ACM_CTRL_DSR)
|
|
if (difference & ACM_CTRL_DSR)
|
|
acm->iocount.dsr++;
|
|
acm->iocount.dsr++;
|
|
- if (difference & ACM_CTRL_BRK)
|
|
|
|
- acm->iocount.brk++;
|
|
|
|
- if (difference & ACM_CTRL_RI)
|
|
|
|
- acm->iocount.rng++;
|
|
|
|
if (difference & ACM_CTRL_DCD)
|
|
if (difference & ACM_CTRL_DCD)
|
|
acm->iocount.dcd++;
|
|
acm->iocount.dcd++;
|
|
- if (difference & ACM_CTRL_FRAMING)
|
|
|
|
|
|
+ if (newctrl & ACM_CTRL_BRK)
|
|
|
|
+ acm->iocount.brk++;
|
|
|
|
+ if (newctrl & ACM_CTRL_RI)
|
|
|
|
+ acm->iocount.rng++;
|
|
|
|
+ if (newctrl & ACM_CTRL_FRAMING)
|
|
acm->iocount.frame++;
|
|
acm->iocount.frame++;
|
|
- if (difference & ACM_CTRL_PARITY)
|
|
|
|
|
|
+ if (newctrl & ACM_CTRL_PARITY)
|
|
acm->iocount.parity++;
|
|
acm->iocount.parity++;
|
|
- if (difference & ACM_CTRL_OVERRUN)
|
|
|
|
|
|
+ if (newctrl & ACM_CTRL_OVERRUN)
|
|
acm->iocount.overrun++;
|
|
acm->iocount.overrun++;
|
|
spin_unlock_irqrestore(&acm->read_lock, flags);
|
|
spin_unlock_irqrestore(&acm->read_lock, flags);
|
|
|
|
|