[PATCH UBUNTU] drivers/net/fec: Convert to a platform bus driver

Tim Gardner tim.gardner at canonical.com
Thu Oct 8 15:01:09 UTC 2009


Jeremy Kerr wrote:
> BugLink: https://bugs.launchpad.net/bugs/438687
> 
> Currently, the FEC device is placed on the 'virtual' bus, and so has no
> driver symlink in sysfs. This symlink is required for network manager to
> handle the device properly, so FEC devices are currently ignored.
> 
> This change converts the FEC driver to use the platform bus, so we get
> the proper symlinks set up in sysfs. With this change, NM will bring up
> the network as expected.
> 
> We're doing the platform_device_register in the driver itself, rather
> than in machine-specific code. This is a bit of a hack: the driver will
> always attempt to initialise a FEC even if one isn't present in the
> system. However, this is no different from the existing driver.
> 
> Signed-off-by: Jeremy Kerr <jeremy.kerr at canonical.com>
> 
> ---
>  drivers/net/fec.c |   90 ++++++++++++++++++++++++++++++++++++----------
>  1 file changed, 72 insertions(+), 18 deletions(-)

applied - Have you dropped this one on the Freescale folks? I changed
the commit label to 'UBUNTU: SAUCE:' until they get it in their tree, or
it gets upstream.

-- 
Tim Gardner tim.gardner at canonical.com




More information about the kernel-team mailing list