From d7ade692c8c3c96bae6828f63afb1b19765b5589 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 10 Feb 2021 19:52:00 +0100 Subject: [PATCH] nusb: don't create rw iso endpoints (by Michael Forney) There may be two iso endpoints with the same ID if it is asynchronous or adaptive (one for data, one for feedback), and rw iso endpoints are unusable (error out with "iso i/o is half-duplex"). --- sys/src/cmd/nusb/lib/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/nusb/lib/parse.c b/sys/src/cmd/nusb/lib/parse.c index 21cd83115..916da0b3e 100644 --- a/sys/src/cmd/nusb/lib/parse.c +++ b/sys/src/cmd/nusb/lib/parse.c @@ -127,7 +127,7 @@ parseendpt(Usbdev *d, Conf *c, Iface *ip, Altc *altc, uchar *b, int n, Ep **epp) ep = mkep(d, epid); ep->dir = dir; }else if((ep->addr & 0x80) != (addr & 0x80)){ - if(ep->type == type) + if(ep->type == type && type != Eiso) ep->dir = Eboth; else { /* -- 2.44.0