From: Alan Cox Date: Fri, 17 Oct 2008 19:28:25 +0000 (+0100) Subject: epca: Add infinite break support X-Git-Tag: v2.6.28-rc1~94 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=252883e512c6d8fbc03b6738f1620fda44c4d472;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 4998b2761e8..cf2461d34e5 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);