]> git.baikalelectronics.ru Git - kernel.git/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)
commitdcf80a3009e095dac240e1befce7ab3be7ff0f52
treed3c6e163a697029b0c7a14c745318f4f58a69445
parent5e7099e38ae38118bdb6577390bdb428522fe521
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