aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-23 16:15:43 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-12-23 16:15:43 +0000
commit09c5cf73dda395898e5ecce729bee10edebc7787 (patch)
tree53b818e20f5048e96f77f159d88885a80056640e /os/hal/platforms
parent5089bc85d642f39214d43045c685709632a86c68 (diff)
downloadChibiOS-09c5cf73dda395898e5ecce729bee10edebc7787.tar.gz
ChibiOS-09c5cf73dda395898e5ecce729bee10edebc7787.tar.bz2
ChibiOS-09c5cf73dda395898e5ecce729bee10edebc7787.zip
Fixed bug 3596911.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4961 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/mac_lld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/mac_lld.c b/os/hal/platforms/STM32/mac_lld.c
index eb87d579d..1a7687d2f 100644
--- a/os/hal/platforms/STM32/mac_lld.c
+++ b/os/hal/platforms/STM32/mac_lld.c
@@ -272,8 +272,10 @@ void mac_lld_init(void) {
;
#endif
+#if STM32_ETH1_CHANGE_PHY_STATE
/* PHY in power down mode until the driver will be started.*/
mii_write(&ETHD1, MII_BMCR, mii_read(&ETHD1, MII_BMCR) | BMCR_PDOWN);
+#endif
/* MAC clocks stopped again.*/
rccDisableETH(FALSE);