]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mmc/mmc.c
part/dev_desc: Add log2 of blocksize to block_dev_desc data struct
[karo-tx-uboot.git] / drivers / mmc / mmc.c
index 23aeec19239052e835fa1535b22de50693308e61..2590f1bcce5e1fa223732e15c33cdd980ff0e725 100644 (file)
@@ -1203,6 +1203,7 @@ static int mmc_startup(struct mmc *mmc)
        mmc->block_dev.lun = 0;
        mmc->block_dev.type = 0;
        mmc->block_dev.blksz = mmc->read_bl_len;
+       mmc->block_dev.log2blksz = LOG2(mmc->block_dev.blksz);
        mmc->block_dev.lba = lldiv(mmc->capacity, mmc->read_bl_len);
        sprintf(mmc->block_dev.vendor, "Man %06x Snr %04x%04x",
                mmc->cid[0] >> 24, (mmc->cid[2] & 0xffff),