Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb use xhci_polling_p(). this might miss when bus2...



details:   https://anonhg.NetBSD.org/src/rev/3743ab4dd135
branches:  trunk
changeset: 445429:3743ab4dd135
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 28 21:36:34 2018 +0000

description:
use xhci_polling_p().  this might miss when bus2 is active.

XXX: pullup-7, pullup-8.

diffstat:

 sys/dev/usb/xhci.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 3155d01c60c0 -r 3743ab4dd135 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Sun Oct 28 21:08:13 2018 +0000
+++ b/sys/dev/usb/xhci.c        Sun Oct 28 21:36:34 2018 +0000
@@ -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 @@
 {
        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 @@
        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 @@
        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();
 



Home | Main Index | Thread Index | Old Index