summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@freescale.com>2015-08-26 16:58:47 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-27 20:24:49 +0200
commit4b195360914583899070835a08ceb06ac7b848d6 (patch)
tree7b7a3a84a9a78fe050729ab75a46043345ee7c54 /drivers
parentusbnet: Get EVENT_NO_RUNTIME_PM bit before it is cleared (diff)
downloadlinux-4b195360914583899070835a08ceb06ac7b848d6.tar.xz
linux-4b195360914583899070835a08ceb06ac7b848d6.zip
net: phy: fixed: propagate fixed link values to struct
The fixed link values parsed from the device tree are stored in the struct fixed_phy member status. The struct phy_device members speed, duplex were not updated. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/fixed_phy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/phy/fixed_phy.c b/drivers/net/phy/fixed_phy.c
index 1960b46add65..d7a65247f952 100644
--- a/drivers/net/phy/fixed_phy.c
+++ b/drivers/net/phy/fixed_phy.c
@@ -290,6 +290,15 @@ struct phy_device *fixed_phy_register(unsigned int irq,
return ERR_PTR(-EINVAL);
}
+ /* propagate the fixed link values to struct phy_device */
+ phy->link = status->link;
+ if (status->link) {
+ phy->speed = status->speed;
+ phy->duplex = status->duplex;
+ phy->pause = status->pause;
+ phy->asym_pause = status->asym_pause;
+ }
+
of_node_get(np);
phy->dev.of_node = np;