From ce56a7e19429a5701a548bc9f5268eef8bb69a90 Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 20 Aug 2004 17:37:16 +0000 Subject: [PATCH] Also set the AT_XFDONE bit as appropriate. --- sys/dev/usb/umass_isdata.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/umass_isdata.c b/sys/dev/usb/umass_isdata.c index d7968fcf0db4..bdc9d73fcf63 100644 --- a/sys/dev/usb/umass_isdata.c +++ b/sys/dev/usb/umass_isdata.c @@ -1,4 +1,4 @@ -/* $NetBSD: umass_isdata.c,v 1.11 2004/08/12 05:02:50 thorpej Exp $ */ +/* $NetBSD: umass_isdata.c,v 1.12 2004/08/20 17:37:16 thorpej Exp $ */ /* * TODO: @@ -44,7 +44,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: umass_isdata.c,v 1.11 2004/08/12 05:02:50 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umass_isdata.c,v 1.12 2004/08/20 17:37:16 thorpej Exp $"); #include #include @@ -392,6 +392,8 @@ uisdata_exec_cb(struct umass_softc *sc, void *priv, int residue, int status) if (status != STATUS_CMD_OK) cmd->flags |= AT_DF; /* XXX */ cmd->flags |= AT_DONE; + if (cmd->flags & (AT_READ | AT_WRITE)) + cmd->flags |= AT_XFDONE; if (cmd->flags & (AT_POLL | AT_WAIT)) { DPRINTF(("%s: wakeup %p\n", __func__, cmd)); wakeup(cmd);