Module Name: src
Committed By: pooka
Date: Sat Oct 3 20:46:49 UTC 2009
Modified Files:
src/sys/rump/dev/wip/librumpusbhc: rumpusbhc.c
Log Message:
Report the root hub as self-powered. Works better when attaching
power-hungry devices.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c
diff -u src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.2 src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.3
--- src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c:1.2 Sat Oct 3 19:07:33 2009
+++ src/sys/rump/dev/wip/librumpusbhc/rumpusbhc.c Sat Oct 3 20:46:49 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpusbhc.c,v 1.2 2009/10/03 19:07:33 pooka Exp $ */
+/* $NetBSD: rumpusbhc.c,v 1.3 2009/10/03 20:46:49 pooka Exp $ */
/*
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.2 2009/10/03 19:07:33 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpusbhc.c,v 1.3 2009/10/03 20:46:49 pooka Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -158,7 +158,9 @@
+ USB_INTERFACE_DESCRIPTOR_SIZE
+ USB_ENDPOINT_DESCRIPTOR_SIZE },
.bNumInterface = 1,
+ .bmAttributes = UC_SELF_POWERED | UC_ATTR_MBO,
};
+/* XXX: spec says UC_ATTR_MBO is reserved and set to one. required? */
static const usb_interface_descriptor_t rumphub_uid = {
.bLength = USB_INTERFACE_DESCRIPTOR_SIZE,