h5400_wifi - proposal for the driver

From: Michal Panczyk <mpanczyk_at_gmail.com>
Date: Thu, 8 May 2008 00:53:18 +0200

Hello (full working) list :)
I would like to propose the first step of getting a nice wifi driver
for h5000 devices. I tried to get some help on that on kernel-discuss
but due to current situation of the kernel development it failed.

My work was mostly concentrated on h5400_wifi.c - mostly stripping the
old version to the very necessary minimum. All the work was inspired
by Milan Plizk - chats on irc, post at angstrom-devel and or bugzilla.
In current form driver works. The procedure is simple (but needs to be
simplified !). The driver sets two bits to enable the wifi device -
for details see [1].
To get the wifi working the ohci_hcd need to be loaded before the
h5400_wifi. I think this is the first thing that needs to be changed -
make the h5400_wifi depend on the ohci module.
The next thing the module does is activates the led. In current form
it is the left red one blinking, showing that the module is loaded. It
does not show "connected" state, or rx/tx activity (as in wince -
AFAIR).
Another problem with the driver, or more precisely with the kernel is
that the GPIOs are not reseted after reboot - once the module is
loaded, bits are set, and the machine is reseted, the bits stay set
on. This results in uncontrolled wifi activation after loading
ohci_hcd module, with no h5400_wifi module.

The future of the driver is:
-merging it to h5400.c
-figure out a nice way to control activation if the wifi device
instead of loading/unloading module
-making it powersave in sleepmode
-more control of leds (rx, tx activity signaling)
-investigating the driver crashes

Please keep in mind that this is just a proposal - I worked on that
and tested the driver in a bit older kernel version - one from
angstrom-devel, where bt and bl were not yet merged in the h5400.c. I
can supply a test image after some progress is made.

I attach a patch against cvs.

I would be more than happy to answer all questions concerning this
proposal. I would really like to see it working with no "ugly hacks",
so all the help is appreciated.

-- 
Best regards
Michal Panczyk
[1]  http://bugzilla.openembedded.net/show_bug.cgi?id=3161

Received on Wed May 07 2008 - 18:53:22 EDT

This archive was generated by hypermail 2.2.0 : Thu May 22 2008 - 10:25:48 EDT