diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2015-08-26 10:58:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-27 14:24:49 -0400 |
commit | 4b195360914583899070835a08ceb06ac7b848d6 (patch) | |
tree | 7b7a3a84a9a78fe050729ab75a46043345ee7c54 | |
parent | f50791ac1aca1ac1b0370d62397b43e9f831421a (diff) |
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>
-rw-r--r-- | drivers/net/phy/fixed_phy.c | 9 |
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, | |||
290 | return ERR_PTR(-EINVAL); | 290 | return ERR_PTR(-EINVAL); |
291 | } | 291 | } |
292 | 292 | ||
293 | /* propagate the fixed link values to struct phy_device */ | ||
294 | phy->link = status->link; | ||
295 | if (status->link) { | ||
296 | phy->speed = status->speed; | ||
297 | phy->duplex = status->duplex; | ||
298 | phy->pause = status->pause; | ||
299 | phy->asym_pause = status->asym_pause; | ||
300 | } | ||
301 | |||
293 | of_node_get(np); | 302 | of_node_get(np); |
294 | phy->dev.of_node = np; | 303 | phy->dev.of_node = np; |
295 | 304 | ||