summaryrefslogtreecommitdiffstats
path: root/tools/spi
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-05 12:42:15 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-04-18 15:23:49 +0300
commitc28f82595dde97dda0b769f78f0faea78acd993b (patch)
tree05f7efc2fc0731cb1f5dc382a9439aa2aa2696fd /tools/spi
parent5ef68c56e169a9249b94645a9ea9ca8d14672d26 (diff)
downloadlinux-c28f82595dde97dda0b769f78f0faea78acd993b.tar.gz
linux-c28f82595dde97dda0b769f78f0faea78acd993b.tar.bz2
linux-c28f82595dde97dda0b769f78f0faea78acd993b.zip
usb: dwc3: switch trb enqueue/dequeue and first_trb_index to u8
We *know* that we have 1 PAGE (4096 bytes) for our TRB poll. We also know the size of each TRB and know that we can fit 256 of them in one PAGE. By using a u8 type we can make sure that: enqueue++ % 256; gets optimized to an increment only. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'tools/spi')
0 files changed, 0 insertions, 0 deletions