]> git.baikalelectronics.ru Git - kernel.git/commit
phylib: Support phy module autoloading
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 2 Apr 2010 01:05:27 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 21:30:39 +0000 (14:30 -0700)
commit0553d60146ae995b70b641ad59d815b474a29040
treebe2b509a0d47903ff2ac1d10255a760ade82daca
parentc31505ec336538ceb79c091495cded495d41b787
phylib: Support phy module autoloading

We don't use the normal hotplug mechanism because it doesn't work. It will
load the module some time after the device appears, but that's not good
enough for us -- we need the driver loaded _immediately_ because otherwise
the NIC driver may just abort and then the phy 'device' goes away.

[bwh: s/phy/mdio/ in module alias, kerneldoc for struct mdio_device_id]

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/mod_devicetable.h
include/linux/phy.h
scripts/mod/file2alias.c