From: Marek Vasut <marek.vasut@mailbox.org>
To: Jaehoon Chung <jh80.chung@samsung.com>,
'Marek Vasut' <marek.vasut+renesas@mailbox.org>,
u-boot@lists.denx.de
Cc: 'Nobuhiro Iwamatsu' <iwamatsu@nigauri.org>,
'Paul Barker' <paul.barker.ct@bp.renesas.com>,
'Peng Fan' <peng.fan@nxp.com>
Subject: Re: [PATCH] mmc: renesas-sdhi: Disable clock after tuning reset when possible
Date: Sat, 11 Nov 2023 17:14:25 +0100 [thread overview]
Message-ID: <c87e9fee-b895-4cbd-9bea-e64ba1eb805b@mailbox.org> (raw)
In-Reply-To: <02b201da109b$5fc2fb00$1f48f100$@samsung.com>
On 11/6/23 11:24, Jaehoon Chung wrote:
>
>
>> -----Original Message-----
>> From: Marek Vasut <marek.vasut+renesas@mailbox.org>
>> Sent: Monday, November 6, 2023 7:43 AM
>> To: u-boot@lists.denx.de
>> Cc: Marek Vasut <marek.vasut+renesas@mailbox.org>; Jaehoon Chung <jh80.chung@samsung.com>; Nobuhiro
>> Iwamatsu <iwamatsu@nigauri.org>; Paul Barker <paul.barker.ct@bp.renesas.com>; Peng Fan
>> <peng.fan@nxp.com>
>> Subject: [PATCH] mmc: renesas-sdhi: Disable clock after tuning reset when possible
>>
>> Currently the renesas_sdhi_reset_tuning() unconditionally leaves SDHI
>> clock enabled after the tuning reset. This is not always necessary.
>>
>> After the driver performed tuning reset at the end of probe function,
>> or in the unlikely case that tuning failed during regular operation,
>> the SDHI clock can be disabled after the tuning reset. The following
>> set_ios call would reconfigure the clock as needed.
>>
>> In case of regular set_ios call which requires a tuning reset, keep
>> the clock enabled or disabled according to the mmc->clk_disable state.
>>
>> With this in place, the controllers which have not been accessed via
>> block subsystem after boot are left in quiescent state. However, if an
>> MMC device is used e.g. for environment storage, that controller would
>> be accessed during the environment load and left active, including its
>> clock which would still be generated. This is due to the design of the
>> MMC subsystem, which does not deinit a controller after it was started
>> once, the controller is only deinited in case of mmc rescan, or before
>> OS boot.
>>
>> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>
> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Thanks. Do you want to take this via mmc tree or shall I take it via sh
tree ? I wouldn't mind the later, since it is isolated to renesas platforms.
next prev parent reply other threads:[~2023-11-11 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20231105224327epcas1p2d19ccbed6821310bf0f04dcd2a33da3c@epcas1p2.samsung.com>
2023-11-05 22:42 ` [PATCH] mmc: renesas-sdhi: Disable clock after tuning reset when possible Marek Vasut
2023-11-06 10:24 ` Jaehoon Chung
2023-11-11 16:14 ` Marek Vasut [this message]
2023-11-06 20:04 ` Paul Barker
2023-11-10 0:51 ` Yoshihiro Shimoda
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=c87e9fee-b895-4cbd-9bea-e64ba1eb805b@mailbox.org \
--to=marek.vasut@mailbox.org \
--cc=iwamatsu@nigauri.org \
--cc=jh80.chung@samsung.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=paul.barker.ct@bp.renesas.com \
--cc=peng.fan@nxp.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