From 1cf54ecd3394b14ffb6fab7f2dc6908577120348 Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 7 Apr 2002 12:19:50 +0000 Subject: [PATCH] We not long need to use USBD_NO_TSLEEP. --- sys/dev/usb/if_aue.c | 12 ++++-------- sys/dev/usb/if_cue.c | 22 +++++++--------------- sys/dev/usb/if_kue.c | 2 +- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c index 1608aea2be2c..0ee3152aa692 100644 --- a/sys/dev/usb/if_aue.c +++ b/sys/dev/usb/if_aue.c @@ -253,8 +253,7 @@ aue_csr_read_1(struct aue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 1); - err = usbd_do_request_flags(sc->aue_udev, &req, - &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->aue_udev, &req, &val); AUE_UNLOCK(sc); @@ -283,8 +282,7 @@ aue_csr_read_2(struct aue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 2); - err = usbd_do_request_flags(sc->aue_udev, &req, - &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->aue_udev, &req, &val); AUE_UNLOCK(sc); @@ -312,8 +310,7 @@ aue_csr_write_1(struct aue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 1); - err = usbd_do_request_flags(sc->aue_udev, &req, - &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->aue_udev, &req, &val); AUE_UNLOCK(sc); @@ -341,8 +338,7 @@ aue_csr_write_2(struct aue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 2); - err = usbd_do_request_flags(sc->aue_udev, &req, - &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->aue_udev, &req, &val); AUE_UNLOCK(sc); diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c index cacf21edd438..ab150df0785b 100644 --- a/sys/dev/usb/if_cue.c +++ b/sys/dev/usb/if_cue.c @@ -170,8 +170,7 @@ cue_csr_read_1(struct cue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 1); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, &val); CUE_UNLOCK(sc); @@ -199,8 +198,7 @@ cue_csr_read_2(struct cue_softc *sc, int reg) USETW(req.wIndex, reg); USETW(req.wLength, 2); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, &val); CUE_UNLOCK(sc); @@ -227,8 +225,7 @@ cue_csr_write_1(struct cue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, NULL); CUE_UNLOCK(sc); @@ -256,8 +253,7 @@ cue_csr_write_2(struct cue_softc *sc, int reg, int val) USETW(req.wIndex, reg); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, &val, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, NULL); CUE_UNLOCK(sc); @@ -288,8 +284,7 @@ cue_mem(struct cue_softc *sc, int cmd, int addr, void *buf, int len) USETW(req.wIndex, addr); USETW(req.wLength, len); - err = usbd_do_request_flags(sc->cue_udev, - &req, &buf, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, buf); CUE_UNLOCK(sc); @@ -316,8 +311,7 @@ cue_getmac(struct cue_softc *sc, void *buf) USETW(req.wIndex, 0); USETW(req.wLength, ETHER_ADDR_LEN); - err = usbd_do_request_flags(sc->cue_udev, - &req, buf, USBD_NO_TSLEEP, NULL); + err = usbd_do_request(sc->cue_udev, &req, buf); CUE_UNLOCK(sc); @@ -406,9 +400,7 @@ cue_reset(struct cue_softc *sc) USETW(req.wValue, 0); USETW(req.wIndex, 0); USETW(req.wLength, 0); - err = usbd_do_request_flags(sc->cue_udev, - &req, NULL, USBD_NO_TSLEEP, NULL); - + err = usbd_do_request(sc->cue_udev, &req, NULL); if (err) printf("cue%d: reset failed\n", sc->cue_unit); diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c index 4764fe6632c7..1805108a44cc 100644 --- a/sys/dev/usb/if_kue.c +++ b/sys/dev/usb/if_kue.c @@ -187,7 +187,7 @@ kue_do_request(usbd_device_handle dev, usb_device_request_t *req, void *data) xfer = usbd_alloc_xfer(dev); usbd_setup_default_xfer(xfer, dev, 0, 500000, req, - data, UGETW(req->wLength), USBD_SHORT_XFER_OK|USBD_NO_TSLEEP, 0); + data, UGETW(req->wLength), USBD_SHORT_XFER_OK, 0); err = usbd_sync_transfer(xfer); usbd_free_xfer(xfer); return(err);