]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
epca: Add infinite break support
authorAlan Cox <alan@redhat.com>
Fri, 17 Oct 2008 19:28:25 +0000 (20:28 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 16:41:06 +0000 (09:41 -0700)
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>
drivers/char/epca.c

index 4998b2761e8f6e891b1595a686f1e29f948e9fcc..cf2461d34e5fc17d56ca16e5e165a092bd0b6136 100644 (file)
@@ -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);