diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-07-01 07:27:33 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2016-07-01 07:27:33 +0000 |
commit | 2d8904583c1dfd76e98d71322ca5404ebad7135b (patch) | |
tree | 21abb01c1d7c0611b32bd30474d993cfd2f8a89b | |
parent | be8aff81c11e51d25e7a134298b6aa0300f4b7fc (diff) |
Notes
-rw-r--r-- | sys/dev/usb/controller/dwc_otg.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/dwc_otg.c b/sys/dev/usb/controller/dwc_otg.c index 1dcfa02849860..f28c2a6f43017 100644 --- a/sys/dev/usb/controller/dwc_otg.c +++ b/sys/dev/usb/controller/dwc_otg.c @@ -2985,7 +2985,8 @@ dwc_otg_interrupt(void *arg) else sc->sc_flags.status_bus_reset = 0; - if (hprt & HPRT_PRTENCHNG) + if ((hprt & HPRT_PRTENCHNG) && + (hprt & HPRT_PRTENA) == 0) sc->sc_flags.change_enabled = 1; if (hprt & HPRT_PRTENA) @@ -4745,6 +4746,8 @@ tr_handle_get_port_status: value = 0; + if (sc->sc_flags.change_enabled) + value |= UPS_C_PORT_ENABLED; if (sc->sc_flags.change_connect) value |= UPS_C_CONNECT_STATUS; if (sc->sc_flags.change_suspend) |