mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
epca: Add infinite break support
The EPCA can support indefinte break lengths and with info from digi that can now be added Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45e4a24f7b
commit
252883e512
1 changed files with 5 additions and 1 deletions
|
@ -2477,7 +2477,11 @@ static int pc_send_break(struct tty_struct *tty, int msec)
|
|||
unsigned long flags;
|
||||
|
||||
if (msec == -1)
|
||||
return -EOPNOTSUPP;
|
||||
msec = 0xFFFF;
|
||||
else if (msec > 0xFFFE)
|
||||
msec = 0xFFFE;
|
||||
else if (msec < 1)
|
||||
msec = 1;
|
||||
|
||||
spin_lock_irqsave(&epca_lock, flags);
|
||||
globalwinon(ch);
|
||||
|
|
Loading…
Reference in a new issue