Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alan Cox and committed by
Linus Torvalds
252883e5 45e4a24f

+5 -1
+5 -1
drivers/char/epca.c
··· 2477 unsigned long flags; 2478 2479 if (msec == -1) 2480 - return -EOPNOTSUPP; 2481 2482 spin_lock_irqsave(&epca_lock, flags); 2483 globalwinon(ch);
··· 2477 unsigned long flags; 2478 2479 if (msec == -1) 2480 + msec = 0xFFFF; 2481 + else if (msec > 0xFFFE) 2482 + msec = 0xFFFE; 2483 + else if (msec < 1) 2484 + msec = 1; 2485 2486 spin_lock_irqsave(&epca_lock, flags); 2487 globalwinon(ch);