From e0bd90d8a3a6a9006e280a4d7ac76bc18219b7c2 Mon Sep 17 00:00:00 2001 From: Augusto Fraga Giachero Date: Sat, 27 Jul 2019 12:16:13 -0600 Subject: [PATCH] arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c: Set speed back to 10Mbps if 10Mmbps link negotiated. --- arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c index 239960f961..6d673c111a 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_ethernet.c @@ -2794,6 +2794,7 @@ static inline int lpc17_40_phyinit(struct lpc17_40_driver_s *priv) case 0x0002: priv->lp_mode = LPC17_40_10BASET_HD; + lpc17_40_putreg(0, LPC17_40_ETH_SUPP); break; case 0x0004: @@ -2802,6 +2803,7 @@ static inline int lpc17_40_phyinit(struct lpc17_40_driver_s *priv) case 0x0006: priv->lp_mode = LPC17_40_10BASET_FD; + lpc17_40_putreg(0, LPC17_40_ETH_SUPP); break; default: