summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-08-04 14:14:06 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-08-04 14:14:06 +0000
commit317c688ecea5a215612a81d5475072864784259f (patch)
tree96d18d56d8528445e36ed728fba6c219e040f2ee /sys
parent2290ed37ce6cf445c7d5b26bb566538fe2331abd (diff)
After fixing up some of the AR8035 PHY registers, issue a reset. This seems
to fix autonegotiation at 100BaseTX. Drop the bit of code that powers up the PHY as the reset should already take care of that. ok patrick@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/armv7/imx/if_fec.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/armv7/imx/if_fec.c b/sys/arch/armv7/imx/if_fec.c
index 32b8729bb39..ad06d3162f3 100644
--- a/sys/arch/armv7/imx/if_fec.c
+++ b/sys/arch/armv7/imx/if_fec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fec.c,v 1.11 2016/07/27 11:45:02 patrick Exp $ */
+/* $OpenBSD: if_fec.c,v 1.12 2016/08/04 14:14:05 kettenis Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
*
@@ -486,10 +486,7 @@ fec_phy_init(struct fec_softc *sc, struct mii_softc *child)
reg = fec_miibus_readreg(dev, phy, 0x1e);
fec_miibus_writereg(dev, phy, 0x1e, reg | 0x0100);
- /* phy power */
- reg = fec_miibus_readreg(dev, phy, 0x00);
- if (reg & 0x0800)
- fec_miibus_writereg(dev, phy, 0x00, reg & ~0x0800);
+ PHY_RESET(child);
}
if (child->mii_oui == MII_OUI_MICREL &&