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

Commit 8dad0ded authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: increase the buffer size to 1 MB for tty ports"

parents 45507a06 4a1061c2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1301,10 +1301,14 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding)
	}

	tty_port_init(&port->port);
	tty_buffer_set_limit(&port->port, 8388608);
	spin_lock_init(&port->port_lock);
	init_waitqueue_head(&port->drain_wait);
	init_waitqueue_head(&port->close_wait);

	pr_debug("%s open:ttyGS%d and set 8388608, avail:%d\n", __func__,
		port_num, tty_buffer_space_avail(&port->port));

	tasklet_init(&port->push, gs_rx_push, (unsigned long) port);

	INIT_LIST_HEAD(&port->read_pool);