summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorJerzy Kasenberg <[email protected]>2020-08-26 16:08:33 +0200
committerJerzy Kasenberg <[email protected]>2020-09-28 08:41:17 +0200
commit6f3d0af1e65f9741cd9a735fea596e466645e234 (patch)
tree299cbc07a70e015ea067728e002ff50ec6772b1d /src/class
parent4e789b240deb0b124b65fd3a177674f562f0b3c1 (diff)
synopsys: Fix fifo allocation schema
Recommended FIFO allocation schema includes 2 maximum endpoint sizes. Comment suggested that this is the case while it would work according to this description only in checked endpoints were ascending sizes. Also two same size endpoints would be counted as one. That is fixed by way sz is filled. Calculation used too much modulo operation while single division was enough to account for odd FIFO sizes. Extra space that is evenly distributed between Bulk and control endpoints was incorrectly calculated it could prevent allocation of ISO endpoint FIFO when bulk endpoints existed with smaller endpoint numbers. Minimum endpoint FIFO size is 16 32bit words, FIFO space requirement is now observed.
Diffstat (limited to 'src/class')
0 files changed, 0 insertions, 0 deletions