Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 18:33:42 +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: r338271 - head/sys/arm/allwinner
Message-ID:  <201808231833.w7NIXgS5082056@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Thu Aug 23 18:33:42 2018
New Revision: 338271
URL: https://svnweb.freebsd.org/changeset/base/338271

Log:
  aw_mmc: Handle MMCBR_IVAR_RETUNE_REQ
  
  Without this the mmc stack sometimes think that we are in in a retune
  operation and some command like switch the bus width to 4 bits failed.
  We now switch correctly to 4 bits mode for sd card.
  
  Reported by:	jmg, others in pine64 irc channel

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

Modified: head/sys/arm/allwinner/aw_mmc.c
==============================================================================
--- head/sys/arm/allwinner/aw_mmc.c	Thu Aug 23 18:19:33 2018	(r338270)
+++ head/sys/arm/allwinner/aw_mmc.c	Thu Aug 23 18:33:42 2018	(r338271)
@@ -1198,6 +1198,9 @@ aw_mmc_read_ivar(device_t bus, device_t child, int whi
 		*(int *)result = (sc->aw_mmc_conf->dma_xferlen *
 		    AW_MMC_DMA_SEGS) / MMC_SECTOR_SIZE;
 		break;
+	case MMCBR_IVAR_RETUNE_REQ:
+		*(int *)result = retune_req_none;
+		break;
 	}
 
 	return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231833.w7NIXgS5082056>