From: Shawn Lin <shawn.lin@linux.dev>
To: Ulf Hansson <ulf.hansson@oss.qualcomm.com>
Cc: shawn.lin@linux.dev, Kamal Dasu <kamal.dasu@broadcom.com>,
linux-mmc@vger.kernel.org, Ulf Hansson <ulfh@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Florian Fainelli <florian.fainelli@broadcom.com>,
Wolfram Sang <wsa+renesas@sang-engineering.com>,
Oleksij Rempel <o.rempel@pengutronix.de>,
linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Subject: Re: [PATCH v10 1/6] dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO
Date: Wed, 28 Oct 2026 20:08:59 +0800 [thread overview]
Message-ID: <4b19d1b8-e799-40fd-9ee5-ca85aa3952c2@linux.dev> (raw)
In-Reply-To: <CAPx+jO98iHx=VRwyWgg+aQmduquLVZe9Q8FNNK4VwkizXB2A9A@mail.gmail.com>
在 2026/10/28 星期三 18:43, Ulf Hansson 写道:
> On Wed, Oct 28, 2026 at 1:37 AM Shawn Lin <shawn.lin@linux.dev> wrote:
>>
>> 在 2026/10/28 星期三 3:46, Ulf Hansson 写道:
>>> On Tue, Oct 27, 2026 at 4:02 PM Shawn Lin <shawn.lin@linux.dev> wrote:
>>>>
>>>> Hi
>>>>
>>>> 在 2026/10/27 星期二 22:40, Ulf Hansson 写道:
>>>>> From: Kamal Dasu <kamal.dasu@broadcom.com>
>>>>>
>>>>> keep-power-in-suspend is currently documented as SDIO-only, but the
>>>>> requirement it describes -- preserving card power across a
>>>>> suspend/resume cycle -- applies just as well to any card type. Drop
>>>>> the SDIO-only restriction so eMMC and SD platforms can use it too.
>>>>>
>>>>
>>>> I don't see how SD could use it from the following patches. Perhaps we
>>>> should still be more strict here to say SDIO and eMMC only, unless
>>>> SD part is implemented later.
>>>
>>> I didn't have the bandwidth to implement this for SD at this very
>>> moment, but the idea is to add it for SD too.
>>>
>>
>> SDIO devices have a clear wake-on-host requirement, so keeping power on
>> is reasonable. eMMC and SD are passively accessed devices, making this a
>> pseudo-requirement under system freeze conditions until Broadcom chips
>> changed the situation for eMMC.
>>
>> However, for the SD part, I doubt such a need exists. It would require
>> dedicated ROM code support, and unlike eMMC, SD is not used as primary
>> storage. Worse still, unlike eMMC and SDIO devices which are soldered
>> down, vendors typically have an AVL to certify board-mounted components,
>> while SD cards can be freely swapped. The compatibility of off-the-shelf
>> SD cards is relatively poor, so I question whether there is a real-world
>> scenario for SD cards here. If there is no such scenario, this is dead
>> code.
>>
>>> That said, I was also thinking that maybe it would make sense to add a
>>> sysfs node to allow the behavior to be controlled by userspace.
>>> Thoughts?
>>>
>>
>> Sure, regarding the sysfs node you mentioned, we already have
>> mmc_caps2_set() exposed to userspace, and we can add
>> MMC_CAP2_RESET_AT_RESUME support there
>
> The reason for the proposed user space node is not to control
> MMC_CAP2_RESET_AT_RESUME. That is a different story, specific to
> Broadcom platforms at this point.
>
> Instead it was solely about allowing user space to keep the eMMC and
> SD card powered on during system suspend. Which may be useful for
> other reasons. Like, internal garbage collect and suspend/resume
> latency.
>
I got your point now, it sounds reasonable.
> [...]
>
> Kind regards
> Uffe
next prev parent reply other threads:[~2026-10-28 12:09 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 14:40 [PATCH v10 0/6] mmc: core: Keep the card powered across suspend when firmware needs it live Ulf Hansson
2026-10-27 14:40 ` [PATCH v10 1/6] dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO Ulf Hansson
2026-10-27 15:01 ` Shawn Lin
2026-10-27 19:46 ` Ulf Hansson
2026-10-28 0:36 ` Shawn Lin
2026-10-28 10:43 ` Ulf Hansson
2026-10-28 12:08 ` Shawn Lin [this message]
2026-10-27 15:33 ` Krzysztof Kozlowski
2026-10-27 19:48 ` Ulf Hansson
2026-10-27 20:31 ` Kamal Dasu
2026-10-28 10:36 ` Ulf Hansson
2026-10-28 15:46 ` Ulf Hansson
2026-10-27 14:40 ` [PATCH v10 2/6] dt-bindings: mmc: Add reset-card-at-resume property Ulf Hansson
2026-10-27 15:33 ` Krzysztof Kozlowski
2026-10-27 14:40 ` [PATCH v10 3/6] mmc: core: Add option to keep an eMMC powered on at system suspend Ulf Hansson
2026-10-27 15:19 ` Shawn Lin
2026-10-27 14:40 ` [PATCH v10 4/6] mmc: core: Split sdio_set_host_pm_flags() Ulf Hansson
2026-10-27 15:12 ` Shawn Lin
2026-10-27 19:43 ` Ulf Hansson
2026-10-27 14:40 ` [PATCH v10 5/6] mmc: core: Move reset functions for eMMC Ulf Hansson
2026-10-27 15:19 ` Shawn Lin
2026-10-27 14:40 ` [PATCH v10 6/6] mmc: core: Add support for resetting an eMMC at system resume Ulf Hansson
2026-10-27 15:20 ` Shawn Lin
2026-10-27 20:00 ` Kamal Dasu
2026-10-27 19:53 ` [PATCH v10 0/6] mmc: core: Keep the card powered across suspend when firmware needs it live Kamal Dasu
2026-10-28 9:35 ` Ulf Hansson
2026-10-29 19:13 ` Kamal Dasu
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=4b19d1b8-e799-40fd-9ee5-ca85aa3952c2@linux.dev \
--to=shawn.lin@linux.dev \
--cc=adrian.hunter@intel.com \
--cc=florian.fainelli@broadcom.com \
--cc=kamal.dasu@broadcom.com \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=ulf.hansson@oss.qualcomm.com \
--cc=ulfh@kernel.org \
--cc=wsa+renesas@sang-engineering.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