Re: [PATCH 04/13] usb: musb: Fix configuring FIFO for endpoints

2020-11-29 Thread Pavel Machek
On Sun 2020-11-29 17:46:09, Pali Rohár wrote: > This patch fixes configuring FIFO for one-directional endpoints which have > either RX or TX queue and therefore only one FIFO. > > Without this patch if FIFO size was zero then idx was incorrectly > calculated (expr. ffs(0)-1 is not zero) and size

[PATCH 04/13] usb: musb: Fix configuring FIFO for endpoints

2020-11-29 Thread Pali Rohár
This patch fixes configuring FIFO for one-directional endpoints which have either RX or TX queue and therefore only one FIFO. Without this patch if FIFO size was zero then idx was incorrectly calculated (expr. ffs(0)-1 is not zero) and size overflowed in fifosz register. This register uses has