FreeBSD Bugzilla – Attachment 7548 Details for
Bug 16315
USB ugen set configuration ioctl() returns EIO rather than 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.13 KB, created by
Louis Mamakos
on 2000-01-23 18:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Louis Mamakos
Created:
2000-01-23 18:50:01 UTC
Size:
1.13 KB
patch
obsolete
>Index: /sys/dev/usb/ugen.c >=================================================================== >RCS file: /usr/local/FreeBSD/cvs/src/sys/dev/usb/ugen.c,v >retrieving revision 1.35 >diff -u -r1.35 ugen.c >--- /sys/dev/usb/ugen.c 2000/01/23 15:48:29 1.35 >+++ /sys/dev/usb/ugen.c 2000/01/23 18:42:49 >@@ -209,8 +209,12 @@ > * control endpoint is open or not. It is always present. > */ > for (endptno = 1; endptno < USB_MAX_ENDPOINTS; endptno++) >- if (sc->sc_is_open[endptno]) >+ if (sc->sc_is_open[endptno]) { >+ DPRINTFN(1, >+ ("ugen_set_config: %s - endpoint %d is open\n", >+ USBDEVNAME(sc->sc_dev), endptno)); > return (USBD_IN_USE); >+ } > > if (usbd_get_config_descriptor(dev)->bConfigurationValue != configno) { > /* Avoid setting the current value. */ >@@ -957,10 +961,14 @@ > if (!(flag & FWRITE)) > return (EPERM); > err = ugen_set_config(sc, *(int *)addr); >- if (err == USBD_IN_USE) >- return(EBUSY); >- else >+ switch (err) { >+ case USBD_NORMAL_COMPLETION: >+ break; >+ case USBD_IN_USE: >+ return (EBUSY); >+ default: > return (EIO); >+ } > break; > case USB_GET_ALTINTERFACE: > ai = (struct usb_alt_interface *)addr;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16315
: 7548