From dc8432d4593c7a4b0a187d0174d4e4e603e456f6 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 8 Apr 2018 20:51:48 +0200 Subject: 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. --- sys/src/cmd/nusb/usbd/hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/nusb/usbd/hub.c b/sys/src/cmd/nusb/usbd/hub.c index 573a0fd36..3f7147476 100644 --- a/sys/src/cmd/nusb/usbd/hub.c +++ b/sys/src/cmd/nusb/usbd/hub.c @@ -135,10 +135,10 @@ Config: 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; -- cgit v1.2.3