of/mdio: Add support function for Ethernet fixed-link property
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 16 Jul 2009 21:31:31 +0000 (21:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2009 16:27:18 +0000 (09:27 -0700)
commit24c30dbbcdda9aeccb23b4eecb6bb8e538742ea4
tree3b19ab216397bae4712e435d68f1e40ce444527b
parenta947a39d52f5b647a2fd5eca55d39e722a2fa90f
of/mdio: Add support function for Ethernet fixed-link property

Fixed-link support is broken for the ucc_eth, gianfar, and fs_enet
device drivers.  The "OF MDIO rework" patches removed most of the
support. Instead of re-adding fixed-link stuff to the drivers, this
patch adds a support function for parsing the fixed-link property
and obtaining a dummy phy to match.

Note: the dummy phy handling in arch/powerpc is a bit of a hack and
needs to be reworked.  This function is being added now to solve the
regression in the Ethernet drivers, but it should be considered a
temporary measure until the fixed link handling can be reworked.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c
include/linux/of_mdio.h