kernel. 2.6.10-1.727_FC3: problem with pwc modul
Dwaine Garden
DwaineGarden at rogers.com
Thu Jan 6 03:24:37 UTC 2005
Martin Gansser wrote:
>if i use camstream, a webcam programm, 'dmesg' shows the following
>warnings:
>
>the program works, but dmesg locks this messages:
>
>dvb_frontend_stop: thread PID 1515870810 already died
>pwc Failed to restore power to the camera! (-32)
>pwc Failed to set LED on/off time.
>pwc type = 740
>pwc type = 740
>pwc decode_size = 5.
>pwc Using alternate setting 9.
>usb_unlink_urb() is deprecated for synchronous unlinks. Use
>usb_kill_urb() instead.
>Badness in usb_unlink_urb at drivers/usb/core/urb.c:457
> [<c02768ab>] usb_unlink_urb+0x45/0x7e
> [<e0b1d0b2>] pwc_isoc_cleanup+0x59/0xd5 [pwc]
> [<e0b1d592>] pwc_video_close+0xa3/0x10c [pwc]
> [<c015f6c3>] __fput+0x4e/0xe7
> [<c015e2a0>] filp_close+0x59/0x5f
> [<c0103337>] syscall_call+0x7/0xb
>usb_unlink_urb() is deprecated for synchronous unlinks. Use
>usb_kill_urb() instead.
>Badness in usb_unlink_urb at drivers/usb/core/urb.c:457
> [<c02768ab>] usb_unlink_urb+0x45/0x7e
> [<e0b1d0b2>] pwc_isoc_cleanup+0x59/0xd5 [pwc]
> [<e0b1d592>] pwc_video_close+0xa3/0x10c [pwc]
> [<c015f6c3>] __fput+0x4e/0xe7
> [<c015e2a0>] filp_close+0x59/0x5f
> [<c0103337>] syscall_call+0x7/0xb
>
>
>
>
It's dying on the
usb_unlink_urb()
I had to rewrite the code for the usbvision to fix the bombing.
Look for the following....
errCode = usb_unlink_urb(usbvision->sbuf[bufIdx].urb);
if (errCode < 0)
err("%s: usb_unlink_urb() failed: error %d", __FUNCTION__, errCode);
Change it to the usb_kill_urb
usb_kill_urb(usbvision->sbuf[bufIdx].urb);
usb_free_urb(usbvision->sbuf[bufIdx].urb);
usbvision->sbuf[bufIdx].urb = NULL;
Make sure to subsitute the usbvision to whatever is used in the pwc driver.
It should fix it.
Dwaine.
More information about the test
mailing list