From: Adrian Hunter <adrian.hunter@intel.com>
To: Wenchao Chen <wenchao.chen666@gmail.com>
Cc: Wenchao Chen <wenchao.chen@unisoc.com>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
zhenxiong.lai@unisoc.com, chunyan.zhang@unisoc.com,
yuelin.tang@unisoc.com
Subject: Re: [PATCH V2 0/2] mmc: sdhci-sprd: Add SD HS mode online tuning
Date: Tue, 15 Aug 2023 14:19:51 +0300 [thread overview]
Message-ID: <b3c90331-f1c3-bdb7-5fca-cbf6441bedf6@intel.com> (raw)
In-Reply-To: <CA+Da2qxf0o4C-yQZ4EirSRZCGs7a+BZLdxpmXeVM1zsMxG9rmQ@mail.gmail.com>
On 15/08/23 13:55, Wenchao Chen wrote:
> On Tue, Aug 15, 2023 at 6:37 PM Adrian Hunter <adrian.hunter@intel.com> wrote:
>>
>> On 15/08/23 13:29, Wenchao Chen wrote:
>>> On Tue, Aug 15, 2023 at 2:21 PM Adrian Hunter <adrian.hunter@intel.com> wrote:
>>>>
>>>> On 15/08/23 04:40, Wenchao Chen wrote:
>>>>> Change in v2:
>>>>> - add mmc_sd_switch() and mmc_send_status() to the header file
>>>>> - split up core changes from host driver changes
>>>>> - Use pr_debug instead of dev_info and dev_dbg
>>>>> - Optimize the best sampled value algorithm
>>>>
>>>> What about hooking ->set_ios() as Ulf suggested?
>>>>
>>>
>>> I've tried that, but it's not a good way to do it.
>>> We found that sdhci_runtime_resume_host() calls ->set_ios, but we
>>> don't want to do that.
>>
>> Given that sdhci_sprd_runtime_resume() calls sdhci_runtime_resume_host(),
>> it should be possible to determine when to tune, right?
>>
>
> You mean like this? For example:
> static int sdhci_sprd_runtime_resume(struct device *dev)
> {
> ...
> sprd_host->need_hs_tuning = false;
> sdhci_runtime_resume_host(host, 1);
> sprd_host->need_hs_tuning = true;
Yes
> ...
> }
>
>>> We just need SD HS mode tuning at mmc_sd_init_card().
>>>
>>>>>
>>>>> Wenchao Chen (2):
>>>>> mmc: core: Add host specific tuning support for SD HS mode
>>>>> mmc: sdhci-sprd: Add SD HS mode online tuning
>>>>>
>>>>> drivers/mmc/core/sd.c | 12 +++
>>>>> drivers/mmc/core/sd_ops.c | 1 +
>>>>> drivers/mmc/host/sdhci-sprd.c | 152 ++++++++++++++++++++++++++++++++++
>>>>> include/linux/mmc/host.h | 8 ++
>>>>> 4 files changed, 173 insertions(+)
>>>>>
>>>>
>>
next prev parent reply other threads:[~2023-08-15 11:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-15 1:40 [PATCH V2 0/2] mmc: sdhci-sprd: Add SD HS mode online tuning Wenchao Chen
2023-08-15 1:40 ` [PATCH V2 1/2] mmc: core: Add host specific tuning support for SD HS mode Wenchao Chen
2023-08-24 10:11 ` Ulf Hansson
2023-08-15 1:40 ` [PATCH V2 2/2] mmc: sdhci-sprd: Add SD HS mode online tuning Wenchao Chen
2023-08-24 9:59 ` Ulf Hansson
2023-08-15 6:20 ` [PATCH V2 0/2] " Adrian Hunter
2023-08-15 10:29 ` Wenchao Chen
2023-08-15 10:37 ` Adrian Hunter
2023-08-15 10:55 ` Wenchao Chen
2023-08-15 11:19 ` Adrian Hunter [this message]
2023-08-16 2:33 ` Wenchao Chen
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=b3c90331-f1c3-bdb7-5fca-cbf6441bedf6@intel.com \
--to=adrian.hunter@intel.com \
--cc=chunyan.zhang@unisoc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=wenchao.chen666@gmail.com \
--cc=wenchao.chen@unisoc.com \
--cc=yuelin.tang@unisoc.com \
--cc=zhenxiong.lai@unisoc.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