summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ehci.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-09 15:47:55 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-07-09 15:47:55 +0000
commit2670b664800e3af0d1f17d6d3c2a828d75b03cae (patch)
tree6369a7a71c8cd85c9e2b4927315d74b5ae91b952 /sys/dev/usb/ehci.c
parent66a321f8929826c820a40140fffacb73732ef86f (diff)
Adds an optional bus function to set the address of a new device and
explicitly set it when required. Right now xhci(4) does not need such function because it assigns addresses when the first pipe of a device is opened. ok yuo@, pirofti@
Diffstat (limited to 'sys/dev/usb/ehci.c')
-rw-r--r--sys/dev/usb/ehci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 568ccebc6d9..6c4419ea88d 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.158 2014/06/04 13:52:30 mpi Exp $ */
+/* $OpenBSD: ehci.c,v 1.159 2014/07/09 15:47:54 mpi Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -216,6 +216,7 @@ void ehci_dump_exfer(struct ehci_xfer *);
struct usbd_bus_methods ehci_bus_methods = {
.open_pipe = ehci_open,
+ .dev_setaddr = usbd_set_address,
.soft_intr = ehci_softintr,
.do_poll = ehci_poll,
.allocx = ehci_allocx,