diff options
author | Alan Cox <alan@redhat.com> | 2008-10-17 21:28:25 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 18:41:06 +0200 |
commit | 252883e512c6d8fbc03b6738f1620fda44c4d472 (patch) | |
tree | 4652e5c66908cbab566d44e73ac74a6b84ddee60 /drivers/char | |
parent | Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/eric... (diff) | |
download | linux-252883e512c6d8fbc03b6738f1620fda44c4d472.tar.xz linux-252883e512c6d8fbc03b6738f1620fda44c4d472.zip |
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>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/epca.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 4998b2761e8f..cf2461d34e5f 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c @@ -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); |