projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e4a24
)
epca: Add infinite break support
author
Alan Cox
<alan@redhat.com>
Fri, 17 Oct 2008 19:28:25 +0000
(20:28 +0100)
committer
Linus 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
patch
|
blob
|
history
diff --git
a/drivers/char/epca.c
b/drivers/char/epca.c
index
4998b27
..
cf2461d
100644
(file)
--- 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);