Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Patch for orinoco-usb and kernel 2.6.14: msg#00001

Subject: Re: Patch for orinoco-usb and kernel 2.6.14
Pavel Roskin wrote:

>Hello!
>
>On Sat, 2005-10-29 at 20:51 +0300, Anssi Kolehmainen wrote:
>  
>
>>Hi,
>>
>>I just upgraded to kernel 2.6.14 and noticed that orinoco-usb spewed few
>>error messages about not being able to download firmware etc.
>>Orinoco-usb was not working at all. Then I rememberd few "badness in
>>usb_unlink_urb()" error messages from 2.6.13 and decided to change
>>usb_unlink_urb() to usb_kill_urb(). With attached patch orinoco-usb
>>works with 2.6.14 (at least it seems so after 10 minutes of quick
>>testing). My card is Compaq Wireless LAN W200 in Compaq Evo N620c laptop.
>>    
>>
>
>It looks like your patch keeps some instances of usb_unlink_urb().  Why?
>  
>
There is one call to usb_unlink_urb() in ezusb_request_timerfn(). When I
replaced that with usb_kill_urb() it resulted in system freezing where
orinoco-usb was loaded. Only way to make system happy again was to
unplug wireless card (press Fn+F2 on keyboard which has same effect as
removing usb device). After that system was a bit mess. My PCMCIA Wlan
card (Zyxel G100, Prism54g) stopped working (couldn't load firmware or
something weird). After reboot (with orinoco wlan card disconnected)
everything was working fine.

Actual reason might be that usb_kill_urb() waits until it's done and for
some reason urb never gets done. usb_unlink_urb() on the other hand is
asynchronous and returns immediately. It also might be that I made some
other errors while testing which resulted in hangup but since everything
was working fine with that usb_unlink_urb() in ezusb_request_timerfn() I
felt there was no need for further experiments.

I would like to see orinoco-usb getting into main kernel someday and I
could do some coding to make that happen but with no linux kernel
programming experience it's rather hard to know what to do.

Anssi Kolehmainen


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php


<Prev in Thread] Current Thread [Next in Thread>