Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/dev/usb Pull up following revision(s) (requested by s...
details: https://anonhg.NetBSD.org/src/rev/3adb47529ab6
branches: netbsd-7
changeset: 800421:3adb47529ab6
user: snj <snj%NetBSD.org@localhost>
date: Mon Feb 19 19:33:06 2018 +0000
description:
Pull up following revision(s) (requested by skrll in ticket #1556):
sys/dev/usb/if_athn_usb.c: 1.25
sys/dev/usb/if_atu.c: 1.56
sys/dev/usb/if_aue.c: 1.142
sys/dev/usb/if_axe.c: 1.84
sys/dev/usb/if_axen.c: 1.12
sys/dev/usb/if_cdce.c: 1.45
sys/dev/usb/if_cue.c: 1.77
sys/dev/usb/if_kue.c: 1.91
sys/dev/usb/if_otus.c: 1.32
sys/dev/usb/if_rum.c: 1.59
sys/dev/usb/if_run.c: 1.25
sys/dev/usb/if_smsc.c: 1.33
sys/dev/usb/if_udav.c: 1.52
sys/dev/usb/if_upgt.c: 1.18
sys/dev/usb/if_upl.c: 1.61
sys/dev/usb/if_ural.c: 1.53
sys/dev/usb/if_url.c: 1.57
sys/dev/usb/if_urndis.c: 1.17
sys/dev/usb/if_urtw.c: 1.14
sys/dev/usb/if_urtwn.c: 1.56
sys/dev/usb/if_zyd.c: 1.45
sys/dev/usb/irmce.c: 1.4
sys/dev/usb/pseye.c: 1.24
sys/dev/usb/ubt.c: 1.60
sys/dev/usb/ucom.c: 1.120
sys/dev/usb/udsir.c: 1.6
sys/dev/usb/ugen.c: 1.137
sys/dev/usb/uhso.c: 1.27
sys/dev/usb/uirda.c: 1.43
sys/dev/usb/ulpt.c: 1.99
sys/dev/usb/umass.c: 1.163
sys/dev/usb/umidi.c: 1.74
sys/dev/usb/uscanner.c: 1.82
sys/dev/usb/usscanner.c: 1.43
sys/dev/usb/ustir.c: 1.39
sys/dev/usb/utoppy.c: 1.30
sys/dev/usb/uvideo.c: 1.46
PR kern/52931 Kernel panics with Atheros usb wireless interface
Audit the flags to usbd_create_xfer so that USBD_FORCE_SHORT_XFER is
supplied wherever such a transfer is setup. We can drop
USBD_SHORT_XFER_OK as it has not bearing on number of TDs
diffstat:
sys/dev/usb/if_athn_usb.c | 8 ++++----
sys/dev/usb/if_atu.c | 8 ++++----
sys/dev/usb/if_aue.c | 6 +++---
sys/dev/usb/if_axe.c | 6 +++---
sys/dev/usb/if_axen.c | 7 +++----
sys/dev/usb/if_cdce.c | 6 +++---
sys/dev/usb/if_cue.c | 6 +++---
sys/dev/usb/if_kue.c | 6 +++---
sys/dev/usb/if_otus.c | 6 +++---
sys/dev/usb/if_rum.c | 6 +++---
sys/dev/usb/if_run.c | 6 +++---
sys/dev/usb/if_smsc.c | 4 ++--
sys/dev/usb/if_udav.c | 6 +++---
sys/dev/usb/if_upgt.c | 10 +++++-----
sys/dev/usb/if_upl.c | 6 +++---
sys/dev/usb/if_ural.c | 6 +++---
sys/dev/usb/if_url.c | 6 +++---
sys/dev/usb/if_urndis.c | 6 +++---
sys/dev/usb/if_urtw.c | 6 +++---
sys/dev/usb/if_urtwn.c | 6 +++---
sys/dev/usb/if_zyd.c | 6 +++---
sys/dev/usb/irmce.c | 6 +++---
sys/dev/usb/pseye.c | 6 +++---
sys/dev/usb/ubt.c | 12 ++++++------
sys/dev/usb/ucom.c | 6 +++---
sys/dev/usb/udsir.c | 6 +++---
sys/dev/usb/ugen.c | 10 ++++------
sys/dev/usb/uhso.c | 6 +++---
sys/dev/usb/uirda.c | 6 +++---
sys/dev/usb/ulpt.c | 6 +++---
sys/dev/usb/umass.c | 16 ++++++++--------
sys/dev/usb/umidi.c | 6 +++---
sys/dev/usb/uscanner.c | 6 +++---
sys/dev/usb/usscanner.c | 11 +++++------
sys/dev/usb/ustir.c | 6 +++---
sys/dev/usb/utoppy.c | 6 +++---
sys/dev/usb/uvideo.c | 6 +++---
37 files changed, 125 insertions(+), 129 deletions(-)
diffs (truncated from 1105 to 300 lines):
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_athn_usb.c
--- a/sys/dev/usb/if_athn_usb.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_athn_usb.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_athn_usb.c,v 1.6.6.2 2017/10/23 19:15:09 snj Exp $ */
+/* $NetBSD: if_athn_usb.c,v 1.6.6.3 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_athn_usb.c,v 1.12 2013/01/14 09:50:31 jsing Exp $ */
/*-
@@ -22,7 +22,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.6.6.2 2017/10/23 19:15:09 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_usb.c,v 1.6.6.3 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -675,7 +675,7 @@
data->sc = usc; /* Backpointer for callbacks. */
error = usbd_create_xfer(usc->usc_rx_data_pipe,
- ATHN_USB_RXBUFSZ, USBD_SHORT_XFER_OK, 0, &data->xfer);
+ ATHN_USB_RXBUFSZ, 0, 0, &data->xfer);
if (error) {
aprint_error_dev(usc->usc_dev,
"could not allocate xfer\n");
@@ -722,7 +722,7 @@
data->sc = usc; /* Backpointer for callbacks. */
error = usbd_create_xfer(usc->usc_tx_data_pipe,
- ATHN_USB_TXBUFSZ, USBD_SHORT_XFER_OK, 0, &data->xfer);
+ ATHN_USB_TXBUFSZ, USBD_FORCE_SHORT_XFER, 0, &data->xfer);
if (error) {
aprint_error_dev(usc->usc_dev,
"could not create xfer on TX pipe\n");
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_atu.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_atu.c,v 1.49.10.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_atu.c,v 1.49.10.2 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
/*
* Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.49.10.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.49.10.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -317,7 +317,7 @@
s = splnet();
struct usbd_pipe *pipe0 = usbd_get_pipe0(sc->atu_udev);
- int error = usbd_create_xfer(pipe0, length, USBD_SHORT_XFER_OK, 0,
+ int error = usbd_create_xfer(pipe0, length, 0, 0,
&xfer);
if (error) {
splx(s);
@@ -1560,7 +1560,7 @@
c->atu_idx = i;
if (c->atu_xfer == NULL) {
int err = usbd_create_xfer(sc->atu_ep[ATU_ENDPT_RX],
- ATU_RX_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->atu_xfer);
+ ATU_RX_BUFSZ, 0, 0, &c->atu_xfer);
if (err)
return err;
c->atu_buf = usbd_get_buffer(c->atu_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_aue.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.132.2.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_aue.c,v 1.132.2.2 2018/02/19 19:33:06 snj Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.132.2.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.132.2.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1012,7 +1012,7 @@
return ENOBUFS;
if (c->aue_xfer == NULL) {
int err = usbd_create_xfer(sc->aue_ep[AUE_ENDPT_RX],
- AUE_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->aue_xfer);
+ AUE_BUFSZ, 0, 0, &c->aue_xfer);
if (err) {
return err;
}
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_axe.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axe.c,v 1.67.2.2 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_axe.c,v 1.67.2.3 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_axe.c,v 1.137 2016/04/13 11:03:37 mpi Exp $ */
/*
@@ -87,7 +87,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67.2.2 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67.2.3 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1199,7 +1199,7 @@
c->axe_idx = i;
if (c->axe_xfer == NULL) {
int err = usbd_create_xfer(sc->axe_ep[AXE_ENDPT_RX],
- sc->axe_bufsz, USBD_SHORT_XFER_OK, 0, &c->axe_xfer);
+ sc->axe_bufsz, 0, 0, &c->axe_xfer);
if (err)
return err;
c->axe_buf = usbd_get_buffer(c->axe_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_axen.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_axen.c,v 1.3.2.2 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_axen.c,v 1.3.2.3 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
/*
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.3.2.2 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.3.2.3 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -932,8 +932,7 @@
c->axen_idx = i;
if (c->axen_xfer == NULL) {
int err = usbd_create_xfer(sc->axen_ep[AXEN_ENDPT_RX],
- sc->axen_bufsz, USBD_SHORT_XFER_OK, 0,
- &c->axen_xfer);
+ sc->axen_bufsz, 0, 0, &c->axen_xfer);
if (err)
return err;
c->axen_buf = usbd_get_buffer(c->axen_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_cdce.c
--- a/sys/dev/usb/if_cdce.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_cdce.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cdce.c,v 1.38.12.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_cdce.c,v 1.38.12.2 2018/02/19 19:33:06 snj Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000-2003 Bill Paul <wpaul%windriver.com@localhost>
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.38.12.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cdce.c,v 1.38.12.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -607,7 +607,7 @@
return ENOBUFS;
if (c->cdce_xfer == NULL) {
int err = usbd_create_xfer(sc->cdce_bulkin_pipe,
- CDCE_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->cdce_xfer);
+ CDCE_BUFSZ, 0, 0, &c->cdce_xfer);
if (err)
return err;
c->cdce_buf = usbd_get_buffer(c->cdce_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_cue.c
--- a/sys/dev/usb/if_cue.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_cue.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cue.c,v 1.68.2.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_cue.c,v 1.68.2.2 2018/02/19 19:33:06 snj Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.68.2.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cue.c,v 1.68.2.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -693,7 +693,7 @@
return ENOBUFS;
if (c->cue_xfer == NULL) {
int error = usbd_create_xfer(sc->cue_ep[CUE_ENDPT_RX],
- CUE_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->cue_xfer);
+ CUE_BUFSZ, 0, 0, &c->cue_xfer);
if (error)
return error;
c->cue_buf = usbd_get_buffer(c->cue_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_kue.c
--- a/sys/dev/usb/if_kue.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_kue.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_kue.c,v 1.81.2.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_kue.c,v 1.81.2.2 2018/02/19 19:33:06 snj Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.81.2.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kue.c,v 1.81.2.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -594,7 +594,7 @@
c->kue_idx = i;
if (c->kue_xfer == NULL) {
int error = usbd_create_xfer(sc->kue_ep[KUE_ENDPT_RX],
- KUE_BUFSZ, USBD_SHORT_XFER_OK, 0, &c->kue_xfer);
+ KUE_BUFSZ, 0, 0, &c->kue_xfer);
if (error)
return error;
c->kue_buf = usbd_get_buffer(c->kue_xfer);
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_otus.c
--- a/sys/dev/usb/if_otus.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_otus.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_otus.c,v 1.25.4.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_otus.c,v 1.25.4.2 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_otus.c,v 1.18 2010/08/27 17:08:00 jsg Exp $ */
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_otus.c,v 1.25.4.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_otus.c,v 1.25.4.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -1193,7 +1193,7 @@
data->sc = sc; /* Backpointer for callbacks. */
error = usbd_create_xfer(sc->sc_data_rx_pipe, OTUS_RXBUFSZ,
- USBD_SHORT_XFER_OK, 0, &data->xfer);
+ 0, 0, &data->xfer);
if (error) {
aprint_error_dev(sc->sc_dev,
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_rum.c
--- a/sys/dev/usb/if_rum.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_rum.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,5 +1,5 @@
/* $OpenBSD: if_rum.c,v 1.40 2006/09/18 16:20:20 damien Exp $ */
-/* $NetBSD: if_rum.c,v 1.48.4.1 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_rum.c,v 1.48.4.2 2018/02/19 19:33:06 snj Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -24,7 +24,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.48.4.1 2017/04/05 19:54:19 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.48.4.2 2018/02/19 19:33:06 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -588,7 +588,7 @@
data->sc = sc;
error = usbd_create_xfer(sc->sc_rx_pipeh, MCLBYTES,
- USBD_SHORT_XFER_OK, 0, &data->xfer);
+ 0, 0, &data->xfer);
if (error) {
printf("%s: could not allocate rx xfer\n",
device_xname(sc->sc_dev));
diff -r aa3f2e526e29 -r 3adb47529ab6 sys/dev/usb/if_run.c
--- a/sys/dev/usb/if_run.c Mon Feb 19 19:24:43 2018 +0000
+++ b/sys/dev/usb/if_run.c Mon Feb 19 19:33:06 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_run.c,v 1.10.4.2 2017/04/05 19:54:19 snj Exp $ */
+/* $NetBSD: if_run.c,v 1.10.4.3 2018/02/19 19:33:06 snj Exp $ */
/* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */
/*-
@@ -23,7 +23,7 @@
Home |
Main Index |
Thread Index |
Old Index