From: Richard Retanubun <hidden> Date: 2014-06-19 17:35:34
Fixes commit 3be2a49e5c08 ("of: provide a binding for fixed link PHYs")
Fix the parsing of the new fixed link dts bindings for duplex,
pause, and asym_pause by using the correct device node pointer.
Signed-off-by: Richard Retanubun <redacted>
---
drivers/of/of_mdio.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
From: Richard Retanubun <hidden> Date: 2014-06-19 21:28:57
Fixes commit 3be2a49e5c08 ("of: provide a binding for fixed link PHYs")
Fix the parsing of the new fixed link dts bindings for duplex,
pause, and asym_pause by using the correct device node pointer.
Signed-off-by: Richard Retanubun <redacted>
---
v2: Clean up code indentation. Thanks Sergei!
drivers/of/of_mdio.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
@@ -290,11 +290,13 @@ int of_phy_register_fixed_link(struct device_node *np)fixed_link_node=of_get_child_by_name(np,"fixed-link");if(fixed_link_node){status.link=1;-status.duplex=of_property_read_bool(np,"full-duplex");+status.duplex=of_property_read_bool(fixed_link_node,+"full-duplex");
When I said that continuation line should start under 'fixed_link_node', I
meant it should start right under first letter of this name, after (. You
don't need to use tabs only when indenting the networking code, appropriate
number of spaces after tabs is OK.
WBR, Sergei
From: Richard Retanubun <hidden> Date: 2014-06-20 14:11:07
Fixes commit 3be2a49e5c08 ("of: provide a binding for fixed link PHYs")
Fix the parsing of the new fixed link dts bindings for duplex,
pause, and asym_pause by using the correct device node pointer.
Signed-off-by: Richard Retanubun <redacted>
---
v3: New and improved code indent.
drivers/of/of_mdio.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2014-06-23 04:35:43
From: Richard Retanubun <redacted>
Date: Fri, 20 Jun 2014 10:11:07 -0400
Fixes commit 3be2a49e5c08 ("of: provide a binding for fixed link PHYs")
Fix the parsing of the new fixed link dts bindings for duplex,
pause, and asym_pause by using the correct device node pointer.
Signed-off-by: Richard Retanubun <redacted>