From: Balaji T K <balajitk@xxxxxx> Avoid soft reset of command internal state machine on data errors. Signed-off-by: Balaji T K <balajitk@xxxxxx> Reviewed-by: Felipe Balbi <balbi@xxxxxx> Signed-off-by: Venkatraman S <svenkatr@xxxxxx> --- 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html