Hello.

On 12/06/2013 01:52 AM, Florian Fainelli wrote:

From: Florian Fainelli <[email protected]>

The "max-speed" property is defined per the ePAPR specification to
express the maximum speed a PHY supports. Use that property, if present
to set the phydev->supported features which properly restricts the PHY
within the range of defined speeds.

Signed-off-by: Florian Fainelli <[email protected]>
---
  drivers/of/of_mdio.c | 25 ++++++++++++++++++++++++-
  1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/drivers/of/of_mdio.c b/drivers/of/of_mdio.c
index 4923ab2..e1e19e5 100644
--- a/drivers/of/of_mdio.c
+++ b/drivers/of/of_mdio.c
[...]
@@ -58,8 +76,13 @@ static int of_mdiobus_register_phy(struct mii_bus *mdio, 
struct device_node *chi
                return 1;
        }

+       /* Set phydev->supported based on the "max-speed" property
+        * if present */

   Preferred multi-line comment style is this:

/*
 * bla
 * bla
 */

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to