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
This commit is contained in:
Emmanuel Vadot 2018-08-23 18:33:42 +00:00
parent c91575ceec
commit 55f3f71ca0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338271

View File

@ -1198,6 +1198,9 @@ aw_mmc_read_ivar(device_t bus, device_t child, int which,
*(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);