Skip to contentSkip to conversation

hso: remove setting of low_latency flag

PATCH In review [email protected] 2 participants 3 messages Jun 11, 2010 – Jun 22, 2010

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hso: remove setting of low_latency flag

This patch removes the setting of the low_latency flag. tty_flip_buffer_push() is occasionally being called in irq context, which causes a hang if the low_latency flag is set.
Removing the low_latency flag only seems to impact the flush to ldisc, which will now be put on a workqueue.

---

drivers/net/usb/hso.c +0 -1
index 0a3c41f..4dd2351 100644
@@ -1334,7 +1334,6 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp)
 	/* check for port already opened, if not set the termios */
 	serial->open_count++;
 	if (serial->open_count == 1) {
-		tty->low_latency = 1;
 		serial->rx_state = RX_IDLE;
 		/* Force default termio settings */
 		_hso_serial_set_termios(tty, NULL);
author
#1 lore raw

Hi all,

Did the patch below get accepted or is there a problem with it ? Haven't seen it appearing in any git trees so far.

Thanks,

Filip-

Quoted 26 lines · On Fri, 2010-06-11 at 11:17 +0200, [email protected] wrote:

This patch removes the setting of the low_latency flag. tty_flip_buffer_push() is occasionally being called in irq context, which causes a hang if the low_latency flag is set.
Removing the low_latency flag only seems to impact the flush to ldisc, which will now be put on a workqueue.

---

drivers/net/usb/hso.c +0 -2
index 0a3c41f..4dd2351 100644
@@ -1334,7 +1334,6 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp)
 	/* check for port already opened, if not set the termios */
 	serial->open_count++;
 	if (serial->open_count == 1) {
-		tty->low_latency = 1;
 		serial->rx_state = RX_IDLE;
 		/* Force default termio settings */
 		_hso_serial_set_termios(tty, NULL);
--

To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw

From: Filip Aben <[email protected]>
Date: Thu, 17 Jun 2010 11:03:35 +0200

Quoted 2 lines

Did the patch below get accepted or is there a problem with it ? Haven't seen it appearing in any git trees so far.

I've applied your patch.