ref: dc8432d4593c7a4b0a187d0174d4e4e603e456f6
parent: 21c7c68307c3a80354d1c42210766a33e9394b62
author: cinap_lenrek <[email protected]>
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;