diff options
author | Romain Perier <romain.perier@gmail.com> | 2014-09-08 21:14:47 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-10 04:29:59 +0400 |
commit | 6eacf31139bf9638c62eb7853ee37f70da1ad28c (patch) | |
tree | 607c1c2f61ada0e61a2089e5a8b583b23a143343 /drivers/net/ethernet/arc/emac_main.c | |
parent | 60005c60b1ea807013bcbbfe9309fc924a3881f0 (diff) | |
download | linux-6eacf31139bf9638c62eb7853ee37f70da1ad28c.tar.xz |
ethernet: arc: Add support for Rockchip SoC layer device tree bindings
This patch defines a platform glue layer for Rockchip SoCs which
support arc-emac driver. It ensures that regulator for the rmii is on
before trying to connect to the ethernet controller. It applies right
speed and mode changes to the grf when ethernet settings change.
Signed-off-by: Romain Perier <romain.perier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/arc/emac_main.c')
-rw-r--r-- | drivers/net/ethernet/arc/emac_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/arc/emac_main.c b/drivers/net/ethernet/arc/emac_main.c index a7773923a7a0..dbea8472bfb4 100644 --- a/drivers/net/ethernet/arc/emac_main.c +++ b/drivers/net/ethernet/arc/emac_main.c @@ -48,6 +48,8 @@ static void arc_emac_adjust_link(struct net_device *ndev) if (priv->speed != phy_dev->speed) { priv->speed = phy_dev->speed; state_changed = 1; + if (priv->set_mac_speed) + priv->set_mac_speed(priv, priv->speed); } if (priv->duplex != phy_dev->duplex) { |