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

Emmanuel Vadot manu at FreeBSD.org
Sat May 12 13:13:00 UTC 2018


Author: manu
Date: Sat May 12 13:12:59 2018
New Revision: 333554
URL: https://svnweb.freebsd.org/changeset/base/333554

Log:
  aw_mmc: Remove hardware reset
  
  From all the BSP (Board Source Package) source that I've looked at it seems
  that it's never done, remove it.
  
  Tested On: A31, A64

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

Modified: head/sys/arm/allwinner/aw_mmc.c
==============================================================================
--- head/sys/arm/allwinner/aw_mmc.c	Sat May 12 13:12:26 2018	(r333553)
+++ head/sys/arm/allwinner/aw_mmc.c	Sat May 12 13:12:59 2018	(r333554)
@@ -246,12 +246,6 @@ aw_mmc_attach(device_t dev)
 	SYSCTL_ADD_INT(ctx, tree, OID_AUTO, "req_timeout", CTLFLAG_RW,
 	    &sc->aw_timeout, 0, "Request timeout in seconds");
 
-	/* Hardware reset */
-	AW_MMC_WRITE_4(sc, AW_MMC_HWRST, 1);
-	DELAY(100);
-	AW_MMC_WRITE_4(sc, AW_MMC_HWRST, 0);
-	DELAY(500);
-
 	/* Soft Reset controller. */
 	if (aw_mmc_reset(sc) != 0) {
 		device_printf(dev, "cannot reset the controller\n");


More information about the svn-src-head mailing list