Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: omap_hsmmc: fix cmd23 multiblock read/write

Check for set block count command fails always since host->cmd is set
to NULL in the same function incorrectly. Correct host->cmd usage properly.

Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>

authored by

Balaji T K and committed by
Chris Ball
2177fa94 77fae219

+3 -2
+3 -2
drivers/mmc/host/omap_hsmmc.c
··· 920 920 static void 921 921 omap_hsmmc_cmd_done(struct omap_hsmmc_host *host, struct mmc_command *cmd) 922 922 { 923 - host->cmd = NULL; 924 - 925 923 if (host->mrq->sbc && (host->cmd == host->mrq->sbc) && 926 924 !host->mrq->sbc->error && !(host->flags & AUTO_CMD23)) { 925 + host->cmd = NULL; 927 926 omap_hsmmc_start_dma_transfer(host); 928 927 omap_hsmmc_start_command(host, host->mrq->cmd, 929 928 host->mrq->data); 930 929 return; 931 930 } 931 + 932 + host->cmd = NULL; 932 933 933 934 if (cmd->flags & MMC_RSP_PRESENT) { 934 935 if (cmd->flags & MMC_RSP_136) {