]> err.no Git - linux-2.6/commit
phy/fixed.c: rework to not duplicate PHY layer functionality
authorVitaly Bordug <vitb@kernel.crashing.org>
Thu, 6 Dec 2007 22:51:22 +0000 (01:51 +0300)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 24 Jan 2008 01:33:58 +0000 (19:33 -0600)
commita79d8e93d300adb84cccc38ac396cfb118c238ad
treed3c6e163a697029b0c7a14c745318f4f58a69445
parent9b6d19dd1d87fcca43ebadfad2f50cee07fbef5e
phy/fixed.c: rework to not duplicate PHY layer functionality

With that patch fixed.c now fully emulates MDIO bus, thus no need
to duplicate PHY layer functionality. That, in turn, drastically
simplifies the code, and drops down line count.

As an additional bonus, now there is no need to register MDIO bus
for each PHY, all emulated PHYs placed on the platform fixed MDIO bus.
There is also no more need to pre-allocate PHYs via .config option,
this is all now handled dynamically.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Vitaly Bordug <vitb@kernel.crashing.org>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/net/phy/Kconfig
drivers/net/phy/fixed.c
include/linux/phy_fixed.h