Skip to content

Commit df7b16d

Browse files
committed
Revert "USB: serial: ch341: fix character loss at high transfer rates"
This reverts commit 3c18e9b. These devices do not appear to send a zero-length packet when the transfer size is a multiple of the bulk-endpoint max-packet size. This means that incoming data may not be processed by the driver until a short packet is received or the receive buffer is full. Revert back to using endpoint-sized receive buffers to avoid stalled reads. Reported-by: Paul Größel <[email protected]> Link: https://bugzilla.kernel.org/show_bug.cgi?id=214131 Fixes: 3c18e9b ("USB: serial: ch341: fix character loss at high transfer rates") Cc: [email protected] Cc: Willy Tarreau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johan Hovold <[email protected]>
1 parent 2829a4e commit df7b16d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/usb/serial/ch341.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ static struct usb_serial_driver ch341_device = {
851851
.owner = THIS_MODULE,
852852
.name = "ch341-uart",
853853
},
854-
.bulk_in_size = 512,
855854
.id_table = id_table,
856855
.num_ports = 1,
857856
.open = ch341_open,

0 commit comments

Comments
 (0)