[PATCH 03/18] mmc: meson-gx: explicitely call stop command for multi-block commands only
Heiner Kallweit
hkallweit1 at gmail.com
Tue Feb 14 12:06:07 PST 2017
Explicitely call stop command for multi-block commands only.
Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>
---
drivers/mmc/host/meson-gx-mmc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index e89bdf5f..ece38b44 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -686,10 +686,10 @@ static irqreturn_t meson_mmc_irq_thread(int irq, void *dev_id)
}
meson_mmc_read_resp(host->mmc, cmd);
- if (!data || !data->stop)
- meson_mmc_request_done(host->mmc, mrq);
- else
+ if (mmc_op_multi(cmd->opcode))
meson_mmc_start_cmd(host->mmc, data->stop);
+ else
+ meson_mmc_request_done(host->mmc, mrq);
return IRQ_HANDLED;
}
--
2.11.1
More information about the linux-amlogic
mailing list