]> git.baikalelectronics.ru Git - kernel.git/commit
fec: fix PHY name to match fixed MDIO bus name
authorFlorian Fainelli <florian@openwrt.org>
Mon, 13 Feb 2012 01:23:22 +0000 (01:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2012 21:04:09 +0000 (16:04 -0500)
commit20b0a3bf129c7014b2d0f65832996d23b133d736
treef8f75dd78f1585fea50c1d00d843bd32943b6965
parent33c5056cb4e7c4c1269f4f32b8232e78de777562
fec: fix PHY name to match fixed MDIO bus name

Commit "6c0c093d: fec: use an unique MDIO bus name" first modified
the MDIO bus name to include the platform name, then in commit
"ad726972: net: fec: correct phy_name buffer length when init phy_name"
the PHY name formatting was fixed in the case the PHY matches a PHY
driver.

The FEC driver however, also handles the case where we want to attach
to the fixed MDIO bus name, which was previously named "0", and now
"fixed-0". Change the PHY formatting logic to account for that.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec.c