summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-02-10 19:52:00 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2021-02-10 19:52:00 +0100
commitd7ade692c8c3c96bae6828f63afb1b19765b5589 (patch)
tree34f9196789af717a16d4ad82da3dfd47c80d99dd
parent8606fc8f29fe5b419b74e051c3c8b226ab29c399 (diff)
downloadplan9front-d7ade692c8c3c96bae6828f63afb1b19765b5589.tar.xz
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").
-rw-r--r--sys/src/cmd/nusb/lib/parse.c2
1 files changed, 1 insertions, 1 deletions
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 {
/*