summaryrefslogtreecommitdiff
path: root/sys/dev/usb/dwc2
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2019-03-11 17:50:10 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2019-03-11 17:50:10 +0000
commitee646aa4742c8fcd53ed7375ffa87ea175dc37ec (patch)
tree9f6cb5317659fbf1388073b808abca2364128dd2 /sys/dev/usb/dwc2
parent8e520e7296a7e0eb0b77435e9b5f467bf11cf292 (diff)
Add missing bus powered bit, from aalm@
Diffstat (limited to 'sys/dev/usb/dwc2')
-rw-r--r--sys/dev/usb/dwc2/dwc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c
index 1c0ccba0e25..2fcb7d8e1c4 100644
--- a/sys/dev/usb/dwc2/dwc2.c
+++ b/sys/dev/usb/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.c,v 1.46 2017/06/29 17:36:16 deraadt Exp $ */
+/* $OpenBSD: dwc2.c,v 1.47 2019/03/11 17:50:09 mpi Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
@@ -642,7 +642,7 @@ STATIC const struct dwc2_config_desc dwc2_confd = {
.bNumInterface = 1,
.bConfigurationValue = 1,
.iConfiguration = 0,
- .bmAttributes = UC_SELF_POWERED,
+ .bmAttributes = UC_BUS_POWERED | UC_SELF_POWERED,
.bMaxPower = 0,
},
.ifcd = {