From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [PATCH] Revert "mmc: sdhci: set to INT_DATA_END when there are data"
Date: Thu, 18 Mar 2021 07:43:34 +0900 [thread overview]
Message-ID: <1891546521.01616028481381.JavaMail.epsvc@epcpadp4> (raw)
In-Reply-To: <HK2PR04MB389117419479337800E5EAEC816A9@HK2PR04MB3891.apcprd04.prod.outlook.com>
Hi
On 3/17/21 3:44 PM, Yuezhang.Mo at sony.com wrote:
> This reverts commit 17ea3c862865c0d704646f67dbf8412f9ff54f59.
>
> In eMMC specification, for the response-with-busy(R1b, R5b)
> command, the DAT0 will driven to LOW as BUSY status, and in
> sdhci specification, the transfer complete bit should be wait
> for BUSY status de-assert.
>
> All response-with-busy commands don't contain data, the data
> judgement is no need.
I don't want to revert this commit. Is there any issue without this?
Without this patch, some SoCs have timeout error with stop command.
To prevent it, it needs to increase timeout value at that time.
(Timeout value can't fix each boards, waste time to find proper value,
and be performance degradation.)
I didn't test without this patch on latest U-boot.
But if there is no critical issue, keep it, plz.
Best Regards,
Jaehoon Chung
>
> Signed-off-by: Yuezhang.Mo <Yuezhang.Mo@sony.com>
> ---
> drivers/mmc/sdhci.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
> index d9ab6a0a83..8568f65b18 100644
> --- a/drivers/mmc/sdhci.c
> +++ b/drivers/mmc/sdhci.c
> @@ -258,8 +258,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
> flags = SDHCI_CMD_RESP_LONG;
> else if (cmd->resp_type & MMC_RSP_BUSY) {
> flags = SDHCI_CMD_RESP_SHORT_BUSY;
> - if (data)
> - mask |= SDHCI_INT_DATA_END;
> + mask |= SDHCI_INT_DATA_END;
> } else
> flags = SDHCI_CMD_RESP_SHORT;
>
>
next prev parent reply other threads:[~2021-03-17 22:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210317064558epcas1p23c7f6fd6ca7c4fb7174658a674c21bcf@epcas1p2.samsung.com>
2021-03-17 6:44 ` [PATCH] Revert "mmc: sdhci: set to INT_DATA_END when there are data" Yuezhang.Mo at sony.com
2021-03-17 7:09 ` Andy.Wu at sony.com
2021-03-17 22:43 ` Jaehoon Chung [this message]
2021-03-18 1:59 ` Andy.Wu at sony.com
2021-03-22 10:02 ` Jaehoon Chung
2021-03-23 2:06 ` Andy.Wu at sony.com
2021-04-06 10:02 ` Peng Fan
2021-04-06 11:11 ` Jaehoon Chung
2021-04-06 11:13 ` Jaehoon Chung
2021-05-11 7:39 ` Andy.Wu at sony.com
2021-05-11 22:09 ` Jaehoon Chung
2021-05-19 22:03 ` Jaehoon Chung
2021-07-07 6:49 ` Andy.Wu
2021-09-06 10:13 ` Yuezhang.Mo
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=1891546521.01616028481381.JavaMail.epsvc@epcpadp4 \
--to=jh80.chung@samsung.com \
--cc=u-boot@lists.denx.de \
/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