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

Commit 065e2d2e authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: gadget: Fix incorrect ISOC data transfer PIDs



The PIDs for Iscohronous data transfers are incorrect
for high bandwidth endpoints when the request length is
less than the wMaxPacketSize.
The correct PIDs for ISOC data transfers is
For request length < maxPayloadSize
	- DATA0,
For maxPayloadSize < length < 2*maxPayloadSize
	- DATA0,DATA1
For 2*maxPayloadSize <  length < 3*maxPayloadSize
	- DATA2, DATA1, DATA0.
Fix this by setting the value of trb->size depending
on request length rather than fixing it to the value
depending on wMaxPacketSize.

Change-Id: I9ae88ed3abc566e02daa727e84a2938582931436
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 3eeaf80c
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