From: "Christian Löhle" <CLoehle@hyperstone.com>
To: Wolfram Sang <wsa+renesas@sang-engineering.com>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Cc: "linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
"doug.anderson@chromium.org" <doug.anderson@chromium.org>
Subject: Re: [PATCH 0/3] mmc: also abort tuning with CMD12 for SD
Date: Wed, 15 Sep 2021 08:50:21 +0000 [thread overview]
Message-ID: <bfe5e22fa30344f480b176f5e96afa66@hyperstone.com> (raw)
In-Reply-To: <20210914182023.8103-1-wsa+renesas@sang-engineering.com>
I did not test the patch but want to make you aware of the comment in dw_mmc:
/*
* During UHS tuning sequence, sending the stop
* command after the response CRC error would
* throw the system into a confused state
* causing all future tuning phases to report
* failure.
*
* In such case controller will move into a data
* transfer state after a response error or
* response CRC error. Let's let that finish
* before trying to send a stop, so we'll go to
* STATE_SENDING_DATA.
*
* Although letting the data transfer take place
* will waste a bit of time (we already know
* the command was bad), it can't cause any
* errors since it's possible it would have
* taken place anyway if this tasklet got
* delayed. Allowing the transfer to take place
* avoids races and keeps things simple.
*/
The message in 46d179525a1f6d16957dcb4624517bc04142b3e7
does not mention which card was causing problem, unfortunately.
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
Sent: Tuesday, September 14, 2021 8:20 PM
To: linux-mmc@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org; Yoshihiro Shimoda; Wolfram Sang
Subject: [PATCH 0/3] mmc: also abort tuning with CMD12 for SD
After my hackish RFC patch, here is a small series implementing
(hopefully) the solution we discussed. It will make
mmc_send_abort_tuning() also send CMD12 for SD cards which makes more SD
cards work for us. Details are in the patch descriptions.
Please let me know what you think.
Thanks, and happy hacking!
Wolfram Sang (3):
mmc: core: add helper to send STOP
mmc: core: also abort tuning with CMD12 for SD
mmc: core: remove obsolete parameter from mmc_send_abort_tuning
drivers/mmc/core/block.c | 14 +-------------
drivers/mmc/core/core.h | 1 +
drivers/mmc/core/mmc.c | 6 ++++++
drivers/mmc/core/mmc_ops.c | 23 ++++-------------------
drivers/mmc/core/mmc_ops.h | 14 ++++++++++++++
drivers/mmc/core/sd.c | 6 ++++++
drivers/mmc/host/renesas_sdhi_core.c | 2 +-
drivers/mmc/host/sdhci.c | 2 +-
include/linux/mmc/host.h | 2 +-
9 files changed, 35 insertions(+), 35 deletions(-)
--
2.30.2
=
Hyperstone GmbH | Line-Eid-Strasse 3 | 78467 Konstanz
Managing Directors: Dr. Jan Peter Berns.
Commercial register of local courts: Freiburg HRB381782
next prev parent reply other threads:[~2021-09-15 8:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-14 18:20 [PATCH 0/3] mmc: also abort tuning with CMD12 for SD Wolfram Sang
2021-09-14 18:20 ` [PATCH 1/3] mmc: core: add helper to send STOP Wolfram Sang
2021-09-23 11:49 ` Ulf Hansson
2021-09-14 18:20 ` [PATCH 2/3] mmc: core: also abort tuning with CMD12 for SD Wolfram Sang
2021-09-23 11:51 ` Ulf Hansson
2021-09-28 15:13 ` Wolfram Sang
2021-09-14 18:20 ` [PATCH 3/3] mmc: core: remove obsolete parameter from mmc_send_abort_tuning Wolfram Sang
2021-09-15 8:27 ` [PATCH 0/3] mmc: also abort tuning with CMD12 for SD Geert Uytterhoeven
2021-09-15 8:32 ` Wolfram Sang
2021-09-15 8:50 ` Christian Löhle [this message]
2021-09-15 11:17 ` Wolfram Sang
2021-09-17 6:11 ` Avri Altman
2021-09-23 8:13 ` Wolfram Sang
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=bfe5e22fa30344f480b176f5e96afa66@hyperstone.com \
--to=cloehle@hyperstone.com \
--cc=doug.anderson@chromium.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=wsa+renesas@sang-engineering.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/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