mmc: renesas_sdhi_internal_dmac: Add MMC_CAP2_MERGE_CAPABLE
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 12 Sep 2019 04:13:56 +0000 (13:13 +0900)
committerChristoph Hellwig <hch@lst.de>
Thu, 12 Sep 2019 12:14:09 +0000 (13:14 +0100)
Since this host controller can merge bigger segments if DMA API
layer cam merge the segments, this patch adds the flag.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/mmc/host/renesas_sdhi_internal_dmac.c

index 751fe91c7571d36f7c187e0f7adf5e0c670519fb..a66f8d6d61d1bae37268b462a2011138fc3c3f10 100644 (file)
@@ -106,7 +106,7 @@ static const struct renesas_sdhi_of_data of_rcar_gen3_compatible = {
                          TMIO_MMC_HAVE_CBSY | TMIO_MMC_MIN_RCAR2,
        .capabilities   = MMC_CAP_SD_HIGHSPEED | MMC_CAP_SDIO_IRQ |
                          MMC_CAP_CMD23,
-       .capabilities2  = MMC_CAP2_NO_WRITE_PROTECT,
+       .capabilities2  = MMC_CAP2_NO_WRITE_PROTECT | MMC_CAP2_MERGE_CAPABLE,
        .bus_shift      = 2,
        .scc_offset     = 0x1000,
        .taps           = rcar_gen3_scc_taps,