Commit af728d7a authored by Wolfram Sang's avatar Wolfram Sang Committed by Ulf Hansson

mmc: tmio: add callback for dma irq

We don't want to rely only on the access_end irq in the future, so
implement a callback for dma irqs.
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: default avatarDuy Nguyen <duy.nguyen.rh@renesas.com>
Tested-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20221006190452.5316-4-wsa+renesas@sang-engineering.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 7f3ea248
...@@ -128,6 +128,7 @@ struct tmio_mmc_dma_ops { ...@@ -128,6 +128,7 @@ struct tmio_mmc_dma_ops {
/* optional */ /* optional */
void (*end)(struct tmio_mmc_host *host); /* held host->lock */ void (*end)(struct tmio_mmc_host *host); /* held host->lock */
bool (*dma_irq)(struct tmio_mmc_host *host);
}; };
struct tmio_mmc_host { struct tmio_mmc_host {
......
...@@ -668,6 +668,9 @@ static bool __tmio_mmc_sdcard_irq(struct tmio_mmc_host *host, int ireg, ...@@ -668,6 +668,9 @@ static bool __tmio_mmc_sdcard_irq(struct tmio_mmc_host *host, int ireg,
return true; return true;
} }
if (host->dma_ops && host->dma_ops->dma_irq && host->dma_ops->dma_irq(host))
return true;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment