Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Use usb_rem_task_wait in uatp(4) detach.
details: https://anonhg.NetBSD.org/src/rev/6a3070136efc
branches: trunk
changeset: 365052:6a3070136efc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Jul 29 02:07:46 2018 +0000
description:
Use usb_rem_task_wait in uatp(4) detach.
diffstat:
sys/dev/usb/uatp.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 09a1604d21da -r 6a3070136efc sys/dev/usb/uatp.c
--- a/sys/dev/usb/uatp.c Sun Jul 29 02:07:33 2018 +0000
+++ b/sys/dev/usb/uatp.c Sun Jul 29 02:07:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uatp.c,v 1.15 2017/12/10 17:03:07 bouyer Exp $ */
+/* $NetBSD: uatp.c,v 1.16 2018/07/29 02:07:46 riastradh Exp $ */
/*-
* Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -146,7 +146,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.15 2017/12/10 17:03:07 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.16 2018/07/29 02:07:46 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1362,7 +1362,8 @@
{
DPRINTF(sc, UATP_DEBUG_MISC, ("finalizing\n"));
- usb_rem_task(sc->sc_hdev.sc_parent->sc_udev, &sc->sc_reset_task);
+ usb_rem_task_wait(sc->sc_hdev.sc_parent->sc_udev, &sc->sc_reset_task,
+ USB_TASKQ_DRIVER);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index