Skip to content

dynamic detection of gianfar TPIPA

Paul Gortmaker linuxppc-dev netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5phylib: don't create a phydev for ID-less PHYs.drivers/net/phy/mdio_bus.c drivers/net/phy/phy_device.c+6 -34 replies
2/5gianfar: assign mii_bus value in dev->privdrivers/net/gianfar.c+1 -00 replies
3/5gianfar: limit scope of gfar_local_mdio functionsdrivers/net/gianfar.c drivers/net/gianfar_mii.c+9 -120 replies
4/5gianfar: dont hog the mii_bus->priv with just the regs.drivers/net/gianfar_mii.c include/linux/fsl_devices.h+11 -70 replies
5/5gianfar: don't hard code the TBIPA MDIO addressdrivers/net/gianfar.c drivers/net/gianfar.h drivers/net/gianfar_mii.c +1 more+27 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] dynamic detection of gianfar TPIPA

This patch series consists of some minor cleanups that eventually allow us to implement a dynamic assignment of the gianfar TBIPA. This was the implementation that Andy and Scott indicated was the most desireable solution at the bottom of this discussion:

http://patchwork.ozlabs.org/linuxppc-embedded/patch?id=12902

The lead up patches are as follows:

-dont allocate a phydev for the "ghost" phy that seems to appear
on ID 0x1f of all the MDIO bus scans.

-add in the missing assignment to priv->mii_bus when we assign a
phy to the device.

-cleanup of unnecessary externs that the above change allows us.

-make the mii_bus->priv point to struct gianfar_mdio_data

At this point, we can then actually use the phy_map of the mii_bus to tell us which MDIO ID we can use for the TBIPA, instead of just hard coding 0x1f.

Paul.