svn commit: r343255 - head/sys/arm/allwinner

Kyle Evans kevans at FreeBSD.org
Mon Jan 21 14:35:37 UTC 2019


Author: kevans
Date: Mon Jan 21 14:35:36 2019
New Revision: 343255
URL: https://svnweb.freebsd.org/changeset/base/343255

Log:
  awg: fix soft reset failure with no link
  
  U-Boot will leave the ephy reset de-asserted and the MAC soft reset will
  fail on these boards with internal PHY and no link established. Toggle reset
  again before proceeding to attach/init.
  
  MFC after:	1 week

Modified:
  head/sys/arm/allwinner/if_awg.c

Modified: head/sys/arm/allwinner/if_awg.c
==============================================================================
--- head/sys/arm/allwinner/if_awg.c	Mon Jan 21 08:24:49 2019	(r343254)
+++ head/sys/arm/allwinner/if_awg.c	Mon Jan 21 14:35:36 2019	(r343255)
@@ -1466,6 +1466,12 @@ awg_setup_extres(device_t dev)
 		goto fail;
 	}
 	if (rst_ephy != NULL) {
+		/*
+		 * The ephy reset is left de-asserted by U-Boot.  Assert it
+		 * here to make sure that we're in a known good state going
+		 * into the PHY reset.
+		 */
+		hwreset_assert(rst_ephy);
 		error = hwreset_deassert(rst_ephy);
 		if (error != 0) {
 			device_printf(dev, "cannot de-assert ephy reset\n");


More information about the svn-src-head mailing list