···383383 struct mmc_blk_data *md;384384 int err;385385386386- if (card->csd.cmdclass & ~0x1ff)386386+ /*387387+ * Check that the card supports the command class(es) we need.388388+ */389389+ if (!(card->csd.cmdclass & CCC_BLOCK_READ))387390 return -ENODEV;388391389392 if (card->csd.read_blkbits < 9) {