Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 252883e5 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

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: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 45e4a24f
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -2477,7 +2477,11 @@ static int pc_send_break(struct tty_struct *tty, int msec)
	unsigned long flags;
	unsigned long flags;


	if (msec == -1)
	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);
	spin_lock_irqsave(&epca_lock, flags);
	globalwinon(ch);
	globalwinon(ch);