From: Jean Rene Dawin <jdawin@math.uni-bielefeld.de>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org,
"H . Nikolaus Schaller" <hns@goldelico.com>,
Huijin Park <huijin.park@samsung.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND
Date: Fri, 4 Mar 2022 17:05:14 +0100 [thread overview]
Message-ID: <20220304160513.GA1361@math.uni-bielefeld.de> (raw)
In-Reply-To: <20220304105656.149281-1-ulf.hansson@linaro.org>
Ulf Hansson wrote on Fri 4/03/22 11:56:
> Commit 76bfc7ccc2fa ("mmc: core: adjust polling interval for CMD1"),
> significantly decreased the polling period from ~10-12ms into just a couple
> of us. The purpose was to decrease the total time spent in the busy polling
> loop, but unfortunate it has lead to problems, that causes eMMC cards to
> never gets out busy and thus fails to be initialized.
>
> To fix the problem, but also to try to keep some of the new improved
> behaviour, let's start by using a polling period of 1-2ms, which then
> increases for each loop, according to common polling loop in
> __mmc_poll_for_busy().
>
> Reported-by: Jean Rene Dawin <jdawin@math.uni-bielefeld.de>
> Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
> Cc: Huijin Park <huijin.park@samsung.com>
> Fixes: 76bfc7ccc2fa ("mmc: core: adjust polling interval for CMD1")
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
>
> Jean Rene and H. Nikolaus, if this doesn't work, please try extending the
> the MMC_OP_COND_PERIOD_US a bit, to so see if we can find a value that always
> works.
>
> Kind regards
> Uffe
>
> ---
> drivers/mmc/core/block.c | 2 +-
> drivers/mmc/core/mmc.c | 2 +-
> drivers/mmc/core/mmc_ops.c | 13 +++++++++----
> drivers/mmc/core/mmc_ops.h | 3 ++-
> drivers/mmc/core/sd.c | 2 +-
> 5 files changed, 14 insertions(+), 8 deletions(-)
Hi,
thanks, this works fine.
Regads,
Jean Rene Dawin
next prev parent reply other threads:[~2022-03-04 16:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-04 10:56 [PATCH] mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND Ulf Hansson
2022-03-04 14:38 ` H. Nikolaus Schaller
2022-03-04 16:05 ` Jean Rene Dawin [this message]
2022-03-07 12:17 ` Ulf Hansson
2022-05-04 5:46 ` Jean Rene Dawin
2022-05-04 9:08 ` Ulf Hansson
2022-05-05 7:17 ` Jean Rene Dawin
2022-05-11 6:46 ` Jean Rene Dawin
2022-05-13 20:06 ` Ulf Hansson
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=20220304160513.GA1361@math.uni-bielefeld.de \
--to=jdawin@math.uni-bielefeld.de \
--cc=hns@goldelico.com \
--cc=huijin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.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