From: Yann Sionneau <ysionneau@kalrayinc.com>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] mci: eMMC responds to CMD12 with R1 in case of read
Date: Wed, 29 Nov 2023 10:40:13 +0100 [thread overview]
Message-ID: <77c0a659-0c10-41e3-8a61-621fe2a29821@kalrayinc.com> (raw)
In-Reply-To: <20231129093643.16383-1-ysionneau@kalrayinc.com>
Please disregard this patch, I'll re-send a new one that actually applies...
On 29/11/2023 10:36, Yann Sionneau wrote:
> eMMC specification JESD84-B51 states page 126
> table 49 — Basic commands (class 0 and class 1) that
> CMD12 (STOP_TRANSMISSION) response is R1 for read cases
> and R1b for write cases.
>
> Fix wrong reponse type in eMMC read cases.
>
> Signed-off-by: Yann Sionneau <ysionneau@kalrayinc.com>
> ---
> drivers/mci/mci-core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
> index 3cd6fc73f4..f34023f580 100644
> --- a/drivers/mci/mci-core.c
> +++ b/drivers/mci/mci-core.c
> @@ -298,7 +298,8 @@ static int mci_read_block(struct mci *mci, void *dst, int blocknum,
> ret = mci_send_cmd(mci, &cmd, &data);
>
> if (ret || blocks > 1) {
> - mci_setup_cmd(&cmd, MMC_CMD_STOP_TRANSMISSION, 0, MMC_RSP_R1);
> + mci_setup_cmd(&cmd, MMC_CMD_STOP_TRANSMISSION, 0,
> + IS_SD(mci) ? MMC_RSP_R1b : MMC_RSP_R1);
> mci_send_cmd(mci, &cmd, NULL);
> }
> return ret;
next prev parent reply other threads:[~2023-11-29 9:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-29 9:36 Yann Sionneau
2023-11-29 9:40 ` Yann Sionneau [this message]
2023-11-29 9:41 Yann Sionneau
2023-12-05 7:53 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=77c0a659-0c10-41e3-8a61-621fe2a29821@kalrayinc.com \
--to=ysionneau@kalrayinc.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox