Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b195360 authored by Madalin Bucur's avatar Madalin Bucur Committed by David S. Miller
Browse files

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: default avatarMadalin Bucur <madalin.bucur@freescale.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f50791ac
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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;