Module Name: src Committed By: mrg Date: Sun Oct 28 21:36:34 UTC 2018
Modified Files: src/sys/dev/usb: xhci.c Log Message: use xhci_polling_p(). this might miss when bus2 is active. XXX: pullup-7, pullup-8. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/dev/usb/xhci.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/dev/usb/xhci.c diff -u src/sys/dev/usb/xhci.c:1.99 src/sys/dev/usb/xhci.c:1.100 --- src/sys/dev/usb/xhci.c:1.99 Sun Sep 16 20:21:56 2018 +++ src/sys/dev/usb/xhci.c Sun Oct 28 21:36:34 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: xhci.c,v 1.99 2018/09/16 20:21:56 mrg Exp $ */ +/* $NetBSD: xhci.c,v 1.100 2018/10/28 21:36:34 mrg Exp $ */ /* * Copyright (c) 2013 Jonathan A. Kollasch @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.99 2018/09/16 20:21:56 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.100 2018/10/28 21:36:34 mrg Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -3705,7 +3705,7 @@ xhci_root_intr_start(struct usbd_xfer *x { struct xhci_softc * const sc = XHCI_XFER2SC(xfer); const size_t bn = XHCI_XFER2BUS(xfer) == &sc->sc_bus ? 0 : 1; - const bool polling = sc->sc_bus.ub_usepolling; + const bool polling = xhci_polling_p(sc); XHCIHIST_FUNC(); XHCIHIST_CALLED(); @@ -3794,7 +3794,7 @@ xhci_device_ctrl_start(struct usbd_xfer uint32_t status; uint32_t control; u_int i; - const bool polling = sc->sc_bus.ub_usepolling; + const bool polling = xhci_polling_p(sc); XHCIHIST_FUNC(); XHCIHIST_CALLED(); DPRINTFN(12, "req: %04jx %04jx %04jx %04jx", @@ -3928,7 +3928,7 @@ xhci_device_bulk_start(struct usbd_xfer uint32_t status; uint32_t control; u_int i = 0; - const bool polling = sc->sc_bus.ub_usepolling; + const bool polling = xhci_polling_p(sc); XHCIHIST_FUNC(); XHCIHIST_CALLED();