Tell usbd_set_config_no() to be verbose. It's nice to know whyit fails.

This commit is contained in:
augustss 2000-10-24 14:53:59 +00:00
parent 71fc3f6ee2
commit 94e36acb29
7 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_aue.c,v 1.46 2000/10/12 22:51:20 augustss Exp $ */
/* $NetBSD: if_aue.c,v 1.47 2000/10/24 14:53:59 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
@ -754,7 +754,7 @@ USB_ATTACH(aue)
USB_ATTACH_SETUP;
printf("%s: %s\n", USBDEVNAME(sc->aue_dev), devinfo);
err = usbd_set_config_no(dev, AUE_CONFIG_NO, 0);
err = usbd_set_config_no(dev, AUE_CONFIG_NO, 1);
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->aue_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cue.c,v 1.24 2000/10/01 23:32:45 thorpej Exp $ */
/* $NetBSD: if_cue.c,v 1.25 2000/10/24 14:53:59 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
@ -599,7 +599,7 @@ USB_ATTACH(cue)
USB_ATTACH_SETUP;
printf("%s: %s\n", USBDEVNAME(sc->cue_dev), devinfo);
err = usbd_set_config_no(dev, CUE_CONFIG_NO, 0);
err = usbd_set_config_no(dev, CUE_CONFIG_NO, 1);
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->cue_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_kue.c,v 1.30 2000/10/01 23:32:45 thorpej Exp $ */
/* $NetBSD: if_kue.c,v 1.31 2000/10/24 14:53:59 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
@ -484,7 +484,7 @@ kue_reset(struct kue_softc *sc)
DPRINTFN(5,("%s: %s: enter\n", USBDEVNAME(sc->kue_dev), __FUNCTION__));
err = usbd_set_config_no(sc->kue_udev, KUE_CONFIG_NO, 0);
err = usbd_set_config_no(sc->kue_udev, KUE_CONFIG_NO, 1);
if (err)
printf("%s: reset failed\n", USBDEVNAME(sc->kue_dev));
@ -539,7 +539,7 @@ USB_ATTACH(kue)
USB_ATTACH_SETUP;
printf("%s: %s\n", USBDEVNAME(sc->kue_dev), devinfo);
err = usbd_set_config_no(dev, KUE_CONFIG_NO, 0);
err = usbd_set_config_no(dev, KUE_CONFIG_NO, 1);
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->kue_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_upl.c,v 1.8 2000/10/01 11:35:29 itojun Exp $ */
/* $NetBSD: if_upl.c,v 1.9 2000/10/24 14:53:59 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
* All rights reserved.
@ -248,7 +248,7 @@ USB_ATTACH(upl)
USB_ATTACH_SETUP;
printf("%s: %s\n", USBDEVNAME(sc->sc_dev), devinfo);
err = usbd_set_config_no(dev, UPL_CONFIG_NO, 0);
err = usbd_set_config_no(dev, UPL_CONFIG_NO, 1);
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->sc_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ugen.c,v 1.42 2000/09/08 01:27:12 augustss Exp $ */
/* $NetBSD: ugen.c,v 1.43 2000/10/24 14:53:59 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@ -244,7 +244,7 @@ ugen_set_config(struct ugen_softc *sc, int configno)
USBDEVNAME(sc->sc_dev), configno, sc));
/* Avoid setting the current value. */
if (usbd_get_config_descriptor(dev)->bConfigurationValue != configno) {
err = usbd_set_config_no(dev, configno, 0);
err = usbd_set_config_no(dev, configno, 1);
if (err)
return (err);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: urio.c,v 1.4 2000/09/14 03:13:21 augustss Exp $ */
/* $NetBSD: urio.c,v 1.5 2000/10/24 14:53:59 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -163,7 +163,7 @@ USB_ATTACH(urio)
USB_ATTACH_SETUP;
printf("%s: %s\n", USBDEVNAME(sc->sc_dev), devinfo);
err = usbd_set_config_no(dev, URIO_CONFIG_NO, 0);
err = usbd_set_config_no(dev, URIO_CONFIG_NO, 1);
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->sc_dev));

View File

@ -1,4 +1,4 @@
/* $NetBSD: uscanner.c,v 1.6 2000/10/13 18:16:36 augustss Exp $ */
/* $NetBSD: uscanner.c,v 1.7 2000/10/24 14:53:59 augustss Exp $ */
/* $FreeBSD$ */
/*
@ -258,7 +258,7 @@ USB_ATTACH(uscanner)
sc->sc_udev = uaa->device;
err = usbd_set_config_no(uaa->device, 1, 0); /* XXX */
err = usbd_set_config_no(uaa->device, 1, 1); /* XXX */
if (err) {
printf("%s: setting config no failed\n",
USBDEVNAME(sc->sc_dev));