Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't panic when trying to do isoc transfer, jus...
details: https://anonhg.NetBSD.org/src/rev/9e2c5708eaa7
branches: trunk
changeset: 784180:9e2c5708eaa7
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Jan 21 07:39:59 2013 +0000
description:
Don't panic when trying to do isoc transfer, just return an error.
diffstat:
sys/dev/usb/dwc_otg.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r db60f101d18a -r 9e2c5708eaa7 sys/dev/usb/dwc_otg.c
--- a/sys/dev/usb/dwc_otg.c Mon Jan 21 07:37:06 2013 +0000
+++ b/sys/dev/usb/dwc_otg.c Mon Jan 21 07:39:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_otg.c,v 1.29 2013/01/21 07:37:06 skrll Exp $ */
+/* $NetBSD: dwc_otg.c,v 1.30 2013/01/21 07:39:59 skrll Exp $ */
/*-
* Copyright (c) 2012 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.29 2013/01/21 07:37:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.30 2013/01/21 07:39:59 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1507,12 +1507,13 @@
usbd_status err;
DPRINTF("\n");
- panic("not yet\n");
/* Insert last in queue. */
mutex_enter(&sc->sc_lock);
err = usb_insert_transfer(xfer);
mutex_exit(&sc->sc_lock);
+
+ err = USBD_IOERROR;
if (err)
return err;
Home |
Main Index |
Thread Index |
Old Index