]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/epca.c
epca: Add infinite break support
[linux-2.6-omap-h63xx.git] / 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);