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:
parent
c91575ceec
commit
55f3f71ca0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user