Revert "Workaround: mmc: don't check the lba"
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 20 Oct 2010 11:33:31 +0000 (20:33 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 20 Oct 2010 11:33:31 +0000 (20:33 +0900)
This reverts commit 7c5de787221f437fd71a178a83cd618556794b4f.

drivers/mmc/mmc.c

index d1a8afe..affa043 100644 (file)
@@ -91,14 +91,11 @@ mmc_bwrite(int dev_num, ulong start, lbaint_t blkcnt, const void*src)
 
        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) {
@@ -230,14 +227,11 @@ static ulong mmc_bread(int dev_num, ulong start, lbaint_t blkcnt, void *dst)
        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);