summaryrefslogtreecommitdiff
path: root/sys/src/9/imx8
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2022-07-31 13:12:17 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2022-07-31 13:12:17 +0000
commit9672be80e84cb3253dc999fbaa5dbc7913a17e0e (patch)
tree69fa2962395657faccf1b17413ff4ce58240f53b /sys/src/9/imx8
parent30dcf55ee221b986aee6d428b4da431f6174c66b (diff)
usb: fix ehci isochronous "in" split transactions
For "in" transactions, the "Total Bytes to Transfer" field in the siTD is decremented by the controller by the actual transfer size, so what remains in the field is the residue number of bytes. Also, handle restart when we get a zero byte read on a isochronous "in" endpoint in devusb itself (removing the restart code for xhci drivers). This fixes audio recording with a usb1.1 audio device connected to ehci controller.
Diffstat (limited to 'sys/src/9/imx8')
-rw-r--r--sys/src/9/imx8/usbxhciimx.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/src/9/imx8/usbxhciimx.c b/sys/src/9/imx8/usbxhciimx.c
index eed92b1a6..e75b6076d 100644
--- a/sys/src/9/imx8/usbxhciimx.c
+++ b/sys/src/9/imx8/usbxhciimx.c
@@ -1326,7 +1326,6 @@ isoread(Ep *ep, uchar *p, long n)
}
ยต = io->period;
ctlr = ep->hp->aux;
-Again:
if(needrecover(ctlr))
error(Erecover);
@@ -1374,10 +1373,6 @@ Again:
io->frame = i;
*io->ring->doorbell = io->ring->id;
- if(p == s){
- tsleep(&up->sleep, return0, nil, 5);
- goto Again;
- }
qunlock(io);
poperror();