Loading drivers/usb/gadget/function/u_serial.c +4 −1 Original line number Diff line number Diff line Loading @@ -1239,10 +1239,13 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) } tty_port_init(&port->port); tty_buffer_set_limit(&port->port, 131072); tty_buffer_set_limit(&port->port, 8388608); spin_lock_init(&port->port_lock); init_waitqueue_head(&port->drain_wait); pr_debug("%s open:ttyGS%d and set 8388608, avail:%d\n", __func__, port_num, tty_buffer_space_avail(&port->port)); INIT_WORK(&port->push, gs_rx_push); INIT_LIST_HEAD(&port->read_pool); Loading Loading
drivers/usb/gadget/function/u_serial.c +4 −1 Original line number Diff line number Diff line Loading @@ -1239,10 +1239,13 @@ gs_port_alloc(unsigned port_num, struct usb_cdc_line_coding *coding) } tty_port_init(&port->port); tty_buffer_set_limit(&port->port, 131072); tty_buffer_set_limit(&port->port, 8388608); spin_lock_init(&port->port_lock); init_waitqueue_head(&port->drain_wait); pr_debug("%s open:ttyGS%d and set 8388608, avail:%d\n", __func__, port_num, tty_buffer_space_avail(&port->port)); INIT_WORK(&port->push, gs_rx_push); INIT_LIST_HEAD(&port->read_pool); Loading