Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c28f8259 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 5ef68c56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment