EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-23 Thread Arokux X
Hi, recently I was working on porting EHCI HCD bus glue driver from the vendors kernel tree to the mainline [1]. I've got the storage (USB stick and USB external hard drive) working and was happy. However it does not work completely. Specifically something goes wrong if WiFi module is talked to. T

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-04 Thread Arokux X
Hi all, first of all thank you all for your help. I now have some news to report. Using your hint about timing I've inserted a bunch of udelays around the read/write functions that get called from _rtl92c_write_fw and got rid of the "detected XactErr len 0/0 retry" errors. Then I just tried to use

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-05 Thread Alan Stern
On Sat, 5 Oct 2013, Arokux X wrote: > Hi all, > > first of all thank you all for your help. I now have some news to > report. Using your hint about timing I've inserted a bunch of udelays > around the read/write functions that get called from _rtl92c_write_fw > and got rid of the "detected XactEr

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-05 Thread Larry Finger
On 10/05/2013 10:01 AM, Alan Stern wrote: On Sat, 5 Oct 2013, Arokux X wrote: Hi all, first of all thank you all for your help. I now have some news to report. Using your hint about timing I've inserted a bunch of udelays around the read/write functions that get called from _rtl92c_write_fw an

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-05 Thread Alan Stern
On Sat, 5 Oct 2013, Larry Finger wrote: > >> I do however have something fishy to report, but this is probably an > >> off-topic for linux-usb mailing list so I'll just mention it here > >> briefly for completeness. Fist, I've compared the speed of the > >> rtl8192cu vs 8192cu in 3.4 kernel. The l

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-05 Thread Larry Finger
On 10/05/2013 02:52 PM, Alan Stern wrote: On Sat, 5 Oct 2013, Larry Finger wrote: I do however have something fishy to report, but this is probably an off-topic for linux-usb mailing list so I'll just mention it here briefly for completeness. Fist, I've compared the speed of the rtl8192cu vs 81

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-24 Thread Alan Stern
On Mon, 23 Sep 2013, Arokux X wrote: > Hi, > > recently I was working on porting EHCI HCD bus glue driver from the > vendors kernel tree to the mainline [1]. I've got the storage (USB > stick and USB external hard drive) working and was happy. However it > does not work completely. Specifically s

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-26 Thread Arokux X
Dear Alan, thank you very much for your reply. It was very encouraging. I am totally new to kernel development and it took me quite some time to gather all the bits needed for this simple glue driver. On Tue, Sep 24, 2013 at 5:22 PM, Alan Stern wrote: > On Mon, 23 Sep 2013, Arokux X wrote: > >>

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-27 Thread Alan Stern
On Fri, 27 Sep 2013, Arokux X wrote: > I have done something simple, but reliable now. I have stripped the > vendors driver, so that it had only ~230 LOC. This driver was still > fully functional and wifi module worked. Then I carefully implanted it > into the mainline kernel, making only minimal

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-28 Thread Arokux X
Dear Alan, > I don't know. Did you run all these tests on the same computer? Yes, it is a single board computer, see image here: http://rhombus-tech.net/allwinner_a10/hacking_the_mele_a1000/A10_device_a1000_inside.jpg WLAN Adapter is left at the bottom. > What happens if you back-port your gl

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-28 Thread Alan Stern
On Sun, 29 Sep 2013, Arokux X wrote: > > What happens if you back-port your glue driver to the vendor's kernel? > > I have now 200 lines of code which are (almost) identical. They work > in vendor's kernel and fail in mainline. This indicates that the problem isn't in your glue driver, but is s

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-29 Thread Larry Finger
On 09/28/2013 09:57 PM, Alan Stern wrote: On Sun, 29 Sep 2013, Arokux X wrote: What happens if you back-port your glue driver to the vendor's kernel? I have now 200 lines of code which are (almost) identical. They work in vendor's kernel and fail in mainline. This indicates that the problem

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-29 Thread Arokux X
Dear Larry, > On PCs, the driver has some problems with stability of the radio > connections, and I am currently working on that problem; however, there are > no difficulties in communicating over the USB system. Do you have any idea how I can localize the problem to find out at what stage it fai

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-29 Thread Oleksij Rempel
Hi Arokux, Allan already pointed on timing issue. If you compare bad and working logs you will see that interval on bad log is match more shorter. On my expiriance with other wifi adapter it is critical. Beside, it has nothing todo with wifi at all. In many cases usb controller insight of adapter

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-29 Thread Arokux X
Hi Oleksij, On Sun, Sep 29, 2013 at 10:01 PM, Oleksij Rempel wrote: > Hi Arokux, > > Allan already pointed on timing issue. If you compare bad and working > logs you will see that interval on bad log is match more shorter. On my > expiriance with other wifi adapter it is critical. Beside, it has

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-09-30 Thread Jussi Kivilinna
On 29.09.2013 02:50, Arokux X wrote: > Dear Alan, > >> I don't know. Did you run all these tests on the same computer? > > Yes, it is a single board computer, see image here: > > http://rhombus-tech.net/allwinner_a10/hacking_the_mele_a1000/A10_device_a1000_inside.jpg > > WLAN Adapter is left a

Re: EHCI bus glue driver works for storage, fails for a WiFi module

2013-10-01 Thread Oleksij Rempel
Hi Arokux, Am 29.09.2013 23:16, schrieb Arokux X: > Hi Oleksij, > > On Sun, Sep 29, 2013 at 10:01 PM, Oleksij Rempel > wrote: >> Hi Arokux, >> >> Allan already pointed on timing issue. If you compare bad and working >> logs you will see that interval on bad log is match more shorter. On my >> e