ref: 025c6d8793d5ba16e7bd4f02f9f68a7ec91138f1
parent: 7870b8c8aa06378c0a5a46098c7a46383433e33c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 8 16:51:48 EDT 2018
nusb/usbd: increase buffer size to capture port information due to the addition of uframes property, the buffer got truncated resulting in usbd not recognizing the number of roothub ports.
--- a/sys/src/cmd/nusb/usbd/hub.c
+++ b/sys/src/cmd/nusb/usbd/hub.c
@@ -135,10 +135,10 @@
static void
configroothub(Hub *h)
{- Dev *d;
- char buf[128];
+ char buf[1024];
char *p;
int nr;
+ Dev *d;
d = h->dev;
h->nport = 2;
--
⑨