blklen = mmc->write_bl_len;
-#if 0
- /* Workaround: Please fix it */
if ((start + blkcnt) > mmc->block_dev.lba) {
printf("MMC: block number 0x%lx exceeds max(0x%lx)",
start + blkcnt, mmc->block_dev.lba);
return 0;
}
-#endif
err = mmc_set_blocklen(mmc, mmc->write_bl_len);
if (err) {
if (!mmc)
return 0;
-#if 0
- /* Workaround: Please fix it */
if ((start + blkcnt) > mmc->block_dev.lba) {
printf("MMC: block number 0x%lx exceeds max(0x%lx)",
start + blkcnt, mmc->block_dev.lba);
return 0;
}
-#endif
/* We always do full block reads from the card */
err = mmc_set_blocklen(mmc, mmc->read_bl_len);