Re: [RESEND PATCH 02/16] serial: usbtty: Send urb data in correct order

2021-02-06 Thread Lukasz Majewski
On Fri, 5 Feb 2021 20:11:58 +0100 Pali Rohár wrote: > Function next_urb() selects the last urb data buffer from linked list > to which next data from usbtty puts should be appended. > > But to check if TX data still exists it is needed to look at the > first urb data buffer from linked list.

[RESEND PATCH 02/16] serial: usbtty: Send urb data in correct order

2021-02-05 Thread Pali Rohár
Function next_urb() selects the last urb data buffer from linked list to which next data from usbtty puts should be appended. But to check if TX data still exists it is needed to look at the first urb data buffer from linked list. So check for endpoint->tx_urb (first from the linked list) instead