Skip to content

Commit eb7c00e

Browse files
Wolfram Sangstorulf
authored andcommitted
mmc: host: tmio: fill in response from auto cmd12
After we received the dataend interrupt, R1 response register carries the value from the automatically generated stop command. Report that info back to the MMC block layer, so we will be notified in case of e.g. ECC errors which happened during the last transfer. Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 022f731 commit eb7c00e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/mmc/host/tmio_mmc_pio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ void tmio_mmc_do_data_irq(struct tmio_mmc_host *host)
557557
dev_err(&host->pdev->dev, "unsupported stop: CMD%u,0x%x. We did CMD12,0\n",
558558
stop->opcode, stop->arg);
559559

560+
/* fill in response from auto CMD12 */
561+
stop->resp[0] = sd_ctrl_read16_and_16_as_32(host, CTL_RESPONSE);
562+
560563
sd_ctrl_write16(host, CTL_STOP_INTERNAL_ACTION, 0);
561564
}
562565

0 commit comments

Comments
 (0)