Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Only clear stall if endpoint is stalled. From F...
details: https://anonhg.NetBSD.org/src/rev/2c5cc56213fe
branches: trunk
changeset: 519947:2c5cc56213fe
user: augustss <augustss%NetBSD.org@localhost>
date: Mon Dec 31 11:54:06 2001 +0000
description:
Only clear stall if endpoint is stalled. From FreeBSD.
diffstat:
sys/dev/usb/ugen.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 5d875f342a99 -r 2c5cc56213fe sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c Mon Dec 31 09:44:04 2001 +0000
+++ b/sys/dev/usb/ugen.c Mon Dec 31 11:54:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugen.c,v 1.51 2001/11/13 07:59:32 augustss Exp $ */
+/* $NetBSD: ugen.c,v 1.52 2001/12/31 11:54:06 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.51 2001/11/13 07:59:32 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.52 2001/12/31 11:54:06 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -800,7 +800,8 @@
if (status != USBD_NORMAL_COMPLETION) {
DPRINTF(("ugenintr: status=%d\n", status));
- usbd_clear_endpoint_stall_async(sce->pipeh);
+ if (status == USBD_STALLED)
+ usbd_clear_endpoint_stall_async(sce->pipeh);
return;
}
Home |
Main Index |
Thread Index |
Old Index