Re: [PATCH 3/4] usb-serial: Increase receive buffer to 496

2020-03-14 Thread Samuel Thibault
Jason Andryuk, le jeu. 12 mars 2020 08:55:22 -0400, a ecrit: > A FTDI USB adapter on an xHCI controller can send 512 byte USB packets. > These are 8 * ( 2 bytes header + 62 bytes data). A 384 byte receive > buffer is insufficient to fill a 512 byte packet, so bump the receive > size to 496 ( 512 -

[PATCH 3/4] usb-serial: Increase receive buffer to 496

2020-03-12 Thread Jason Andryuk
A FTDI USB adapter on an xHCI controller can send 512 byte USB packets. These are 8 * ( 2 bytes header + 62 bytes data). A 384 byte receive buffer is insufficient to fill a 512 byte packet, so bump the receive size to 496 ( 512 - 2 * 8 ). Signed-off-by: Jason Andryuk --- hw/usb/dev-serial.c | 2