login
Header Space

 
 

Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Scott Wood <scottwood@...>
Cc: <linuxppc-dev@...>, <avorontsov@...>, <netdev@...>
Date: Tuesday, April 22, 2008 - 11:21 am

On Tuesday 22 April 2008 17:08, Scott Wood wrote:
use
oid
te
er.=20
the=20

I don't plan to touch drivers/net/phy/mdio-bitbang.c at all, it does its jo=
b=20
well enough.

As the openfirmware + gpio + mdio driver might benefit non-powerpc platform=
s,=20
I plan to create a new driver (probably drivers/net/phy/mdio-ofgpio.c) that=
=20
mostly ports drivers/net/fs_enet/mii-bitbang.c to the gpiolib (this replace=
s=20
around 90% of the code).

If both drivers/net/fs_enet/mii-bitbang.c and drivers/net/phy/mdio-ofgpio.c=
=20
must live together, I'll have a problem in=20
drivers/net/fs_enet/fs_enet-main.c. The net device probing code searches th=
e=20
device tree for an associated PHY, and creates a PHY id from the PHY node. =
As=20
the id will be generated from different bus ids in the two mdio drivers (th=
e=20
bus number is the register address for drivers/net/fs_enet/mii-bitbang.c, a=
nd=20
is the gpio index for drivers/net/phy/mdio-ofgpio.c), things will break.

Any idea regarding how to get rid of that fs_enet/mii-bitbang hardcoded=20
dependency ?

=2D-=20
Laurent Pinchart
CSE Semaphore Belgium

Chaussee de Bruxelles, 732A
B-1410 Waterloo
Belgium

T +32 (2) 387 42 59
=46 +32 (2) 387 42 75
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Wed Apr 16, 10:40 am)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Anton Vorontsov, (Wed Apr 16, 12:05 pm)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Wed Apr 16, 12:09 pm)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Fri Apr 18, 7:34 am)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Tue Apr 22, 4:55 am)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Tue Apr 22, 11:21 am)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Laurent Pinchart, (Tue Apr 22, 11:55 am)
Re: [RFC fs_enet: Convert MII bitbang driver to use GPIO lib, Anton Vorontsov, (Tue Apr 22, 11:36 am)
speck-geostationary