diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-02-14 05:52:20 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-02-14 05:52:20 +0000 |
commit | dff2a447b690a5986b7d6e6c15da1eaa56f0a970 (patch) | |
tree | 89770f253306445f0dddd39f41bb662284af8acd /sys | |
parent | fbeb74943faeab3ec266e7aee099e65e9e188fa7 (diff) |
Handle (poll) HCD interrupt right after initialization to immediately mark
ports as enabled/connected.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/dwc2/dwc2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c index fadfc1935e5..afa749d80b6 100644 --- a/sys/dev/usb/dwc2/dwc2.c +++ b/sys/dev/usb/dwc2/dwc2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2.c,v 1.21 2015/02/12 11:38:42 uebayasi Exp $ */ +/* $OpenBSD: dwc2.c,v 1.22 2015/02/14 05:52:19 uebayasi Exp $ */ /* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */ /*- @@ -1821,6 +1821,9 @@ _dwc2_hcd_start(struct dwc2_hsotg *hsotg) dwc2_hcd_reinit(hsotg); + /* Try to enable port. */ + dwc2_handle_hcd_intr(hsotg); + /*XXXNH*/ delay(50); |