Date: Sat, 12 May 2018 13:12:59 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333554 - head/sys/arm/allwinner Message-ID: <201805121312.w4CDCxTN060256@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805121312.w4CDCxTN060256>