From: Balaji T K <balaj...@ti.com>

Avoid soft reset of command internal state machine on data errors.

Signed-off-by: Balaji T K <balaj...@ti.com>
Reviewed-by: Felipe Balbi <ba...@ti.com>
Signed-off-by: Venkatraman S <svenk...@ti.com>
---
 drivers/mmc/host/omap_hsmmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 0fcf792..2d90da8 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -972,8 +972,8 @@ static inline void omap_hsmmc_reset_controller_fsm(struct 
omap_hsmmc_host *host,
 static void hsmmc_command_incomplete(struct omap_hsmmc_host *host,
                                        int err, int end_cmd)
 {
-       omap_hsmmc_reset_controller_fsm(host, SRC);
        if (end_cmd) {
+               omap_hsmmc_reset_controller_fsm(host, SRC);
                if (host->cmd)
                        host->cmd->error = err;
        }
-- 
1.8.0

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to