mmc: Allow 2 byte requests in 4-bit mode for tmio_mmc
[firefly-linux-kernel-4.4.55.git] / drivers / mfd / sh_mobile_sdhi.c
index 01d83a41d570a1a5ccf2decdc167eed774fa7bfa..f1714f93af9db2c91e82ee5eeb076d6f497dd5af 100644 (file)
@@ -125,6 +125,12 @@ static int __devinit sh_mobile_sdhi_probe(struct platform_device *pdev)
                mmc_data->capabilities |= p->tmio_caps;
        }
 
+       /*
+        * All SDHI blocks support 2-byte and larger block sizes in 4-bit
+        * bus width mode.
+        */
+       mmc_data->flags |= TMIO_MMC_BLKSZ_2BYTES;
+
        if (p && p->dma_slave_tx >= 0 && p->dma_slave_rx >= 0) {
                priv->param_tx.slave_id = p->dma_slave_tx;
                priv->param_rx.slave_id = p->dma_slave_rx;