netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] stmmac: fix_mac_speed is called during 10/100<->1000 speed changes
@ 2010-08-24  6:40 Giuseppe CAVALLARO
  2010-08-24  6:40 ` [PATCH 2/3] stmmac: remove dead option in the driver's Kconfig Giuseppe CAVALLARO
  2010-08-25 23:30 ` [PATCH 1/3] stmmac: fix_mac_speed is called during 10/100<->1000 speed changes David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Giuseppe CAVALLARO @ 2010-08-24  6:40 UTC (permalink / raw)
  To: netdev; +Cc: Pawel Moll, Giuseppe Cavallaro

From: Pawel Moll <pawel.moll@st.com>

This patch modifies the stmmac_adjust_link() function so the
fix_mac_speed() is called not only when link speed is changing
between 10 and 100 Mbps (as required in RMII mode) but also
for 1000 Mbps.

Signed-off-by: Pawel Moll <pawel.moll@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
---
 drivers/net/stmmac/stmmac_main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c
index bbb7951..86b6c69 100644
--- a/drivers/net/stmmac/stmmac_main.c
+++ b/drivers/net/stmmac/stmmac_main.c
@@ -238,6 +238,9 @@ static void stmmac_adjust_link(struct net_device *dev)
 			case 1000:
 				if (likely(priv->is_gmac))
 					ctrl &= ~priv->hw->link.port;
+				if (likely(priv->fix_mac_speed))
+					priv->fix_mac_speed(priv->bsp_priv,
+							    phydev->speed);
 				break;
 			case 100:
 			case 10:
-- 
1.5.5.6


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-08-25 23:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-24  6:40 [PATCH 1/3] stmmac: fix_mac_speed is called during 10/100<->1000 speed changes Giuseppe CAVALLARO
2010-08-24  6:40 ` [PATCH 2/3] stmmac: remove dead option in the driver's Kconfig Giuseppe CAVALLARO
2010-08-24  6:40   ` [PATCH 3/3] stmmac: make ioaddr 'void __iomem *' rather than unsigned long Giuseppe CAVALLARO
2010-08-25 23:31     ` David Miller
2010-08-25 23:31   ` [PATCH 2/3] stmmac: remove dead option in the driver's Kconfig David Miller
2010-08-25 23:30 ` [PATCH 1/3] stmmac: fix_mac_speed is called during 10/100<->1000 speed changes David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).