#8 Addressing usb_unlink_urb deprecation

open
None
5
2006-05-02
2005-06-01
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

  • Gabriel Schulhof

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

     
  • Kurt Wall

    Kurt Wall - 2006-05-02
    • assigned_to: nobody --> krwall
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks