Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#8 Addressing usb_unlink_urb deprecation

open
Kurt Wall
None
5
2006-05-02
2005-06-01
Gabriel Schulhof
No

This patch addresses bug #1179890. I wrote it against
qc-usb-messenger-0.8, but it may also apply to qc-usb
in general. The basic idea is the following:

static int qc_unlink_urb_async (struct urb *urb) {
usb_kill_urb (urb) ;
return 0 ;
}

... instead of whatever the qc_unlink_urb_async
function currently contains. The reason for this is
that on 2.6.11, the Messenger camera works for a while,
and then mysteriously stops working. The syslog
contents can be viewed in bug #1179890.

I realize that my patch is merely a hack - after all,
there should be at least an #ifdef in there, to check
whether the kernel version is 2.6.11 or higher and, if
not, it should use the existing code. Nonetheless, this
works for me.

Please let me know: nix@go-nix.ca

Discussion

  • qc-usb-messenger patch addressing usb_unlink_urb() deprecation problem

     
  • Kurt Wall
    Kurt Wall
    2006-05-02

    • assigned_to: nobody --> krwall