Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 149973 Details for
Bug 232053
keyspan USB serial converter fails to allocate URBs properly
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Difference file between original keyspan.c and my corrected version
keyspan.diff (text/plain), 1.75 KB, created by
Richard Stover
on 2007-03-13 18:48:10 UTC
(
hide
)
Description:
Difference file between original keyspan.c and my corrected version
Filename:
MIME Type:
Creator:
Richard Stover
Created:
2007-03-13 18:48:10 UTC
Size:
1.75 KB
patch
obsolete
>115,124d114 >< #define EP_IN_INT(ep) \ >< (((ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) != 0) && \ >< ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == \ >< USB_ENDPOINT_XFER_INT)) >< #define EP_OUT_BULK(ep) \ >< (((ep->bEndpointAddress & USB_ENDPOINT_DIR_MASK) == 0) && \ >< ((ep->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) == \ >< USB_ENDPOINT_XFER_BULK)) >< >< >1293,1297d1282 >< struct usb_host_interface *iface_desc; >< struct usb_endpoint_descriptor *ep_desc = NULL; >< int bNumEnd; >< int i; >< >1303,1321d1287 >< >< /* >< This code added to figure out what type of urb we are >< supposed to be creating. We look through the list of endpoints >< to find the one we are dealing with and get its descriptor. >< */ >< >< iface_desc = serial->interface->cur_altsetting; >< bNumEnd = iface_desc->desc.bNumEndpoints; >< for(i=0; i<bNumEnd; i++) { >< ep_desc = &iface_desc->endpoint[i].desc; >< if (ep_desc->bEndpointAddress == endpoint) break; >< } >< if (i == bNumEnd) { >< dbg("%s - invalid endpoint number %x",__FUNCTION__, >< (unsigned int)endpoint); >< return NULL; >< } >< >1329,1336c1295 >< /* >< Here we fill in the urb depending on what type of endpoint >< we have. With the current keyspan firmware we have BULK IN >< endpoints or INTERRUPT OUT endpoints. >< */ >< >< if(EP_OUT_BULK(ep_desc)) { >< usb_fill_bulk_urb(urb, serial->dev, >--- >> usb_fill_bulk_urb(urb, serial->dev, >1339,1347d1297 >< } else if(EP_IN_INT(ep_desc)) { >< usb_fill_int_urb(urb, serial->dev, >< usb_rcvintpipe(serial->dev, endpoint) | dir, >< buf, len, callback, ctx,4); >< } else { >< dbg("%s !!!! NO ENDPOINT SETUP FOR THIS ONE !!!!",__FUNCTION__); >< usb_free_urb(urb); >< return NULL; >< } >1406c1356 >< >--- >>
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 232053
: 149973