Re: [PATCH] Allow MACB to connect to a higher addresses PHY.

From: Grant Likely
Date: Wed Mar 31 2010 - 02:33:22 EST


On Tue, Mar 30, 2010 at 11:53 PM, Anders Darander
<anders.darander@xxxxxxxxxxxxxx> wrote:
> * Grant Likely <grant.likely@xxxxxxxxxxxx> [100330 16:42]:
> One question, if I add such an kernel parameter, would it be OK to
> implement something like this in the macb-driver:
>
> if parameter == SOME_DEFAULT
>        phydev = phy_find_first(bp->mii_bus);
> else
>        phydev = bp->mii_bus->phy_map[parameter];
>
> I.e. if the parameter is set to some default value, the old behaviour is
> retained, otherwise the specified parameter is used for the phy_addr?

Absolutely.

g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/