Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Reduce excessive settle delay.



details:   https://anonhg.NetBSD.org/src/rev/d7069e7544c6
branches:  trunk
changeset: 374202:d7069e7544c6
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Mon Apr 10 15:27:51 2023 +0000

description:
Reduce excessive settle delay.

diffstat:

 sys/dev/usb/uvideo.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 26f0957ad6f5 -r d7069e7544c6 sys/dev/usb/uvideo.c
--- a/sys/dev/usb/uvideo.c      Mon Apr 10 15:26:56 2023 +0000
+++ b/sys/dev/usb/uvideo.c      Mon Apr 10 15:27:51 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvideo.c,v 1.84 2023/04/10 15:26:56 mlelstv Exp $      */
+/*     $NetBSD: uvideo.c,v 1.85 2023/04/10 15:27:51 mlelstv Exp $      */
 
 /*
  * Copyright (c) 2008 Patrick Mahoney
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.84 2023/04/10 15:26:56 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.85 2023/04/10 15:27:51 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1811,7 +1811,7 @@ uvideo_stream_stop_xfer(struct uvideo_st
                }
 
                /* Give it some time to settle */
-               usbd_delay_ms(vs->vs_parent->sc_udev, 1000);
+               usbd_delay_ms(vs->vs_parent->sc_udev, 20);
 
                /* Set to zero bandwidth alternate interface zero */
                err = usbd_set_interface(vs->vs_iface, 0);



Home | Main Index | Thread Index | Old Index