We not long need to use USBD_NO_TSLEEP.

This commit is contained in:
joe 2002-04-07 12:19:50 +00:00
parent 3e9581a585
commit 1cf54ecd33
3 changed files with 12 additions and 24 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);