提交 252883e5 编写于 作者: A Alan Cox 提交者: Linus Torvalds

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: NAlan Cox <alan@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 45e4a24f
...@@ -2477,7 +2477,11 @@ static int pc_send_break(struct tty_struct *tty, int msec) ...@@ -2477,7 +2477,11 @@ static int pc_send_break(struct tty_struct *tty, int msec)
unsigned long flags; unsigned long flags;
if (msec == -1) 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); spin_lock_irqsave(&epca_lock, flags);
globalwinon(ch); globalwinon(ch);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册