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);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to