Re: [PATCH v10 1/6] dt-bindings: mmc: Extend keep-power-in-suspend beyond SDIO
From: Ulf Hansson
Date: Tue Oct 27 2026 - 15:47:17 EST
On Tue, Oct 27, 2026 at 4:02 PM Shawn Lin <shawn.lin@xxxxxxxxx> wrote:
>
> Hi
>
> 在 2026/10/27 星期二 22:40, Ulf Hansson 写道:
> > From: Kamal Dasu <kamal.dasu@xxxxxxxxxxxx>
> >
> > 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.
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?
>
> > Signed-off-by: Kamal Dasu <kamal.dasu@xxxxxxxxxxxx>
> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> > ---
> > .../devicetree/bindings/mmc/mmc-controller-common.yaml | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
> > index 8b9b3b036129..2fc8e06d5ec9 100644
> > --- a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
> > +++ b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
> > @@ -301,7 +301,7 @@ properties:
> > keep-power-in-suspend:
> > $ref: /schemas/types.yaml#/definitions/flag
> > description:
> > - SDIO only. Preserves card power during a suspend/resume cycle.
> > + Preserves card power during a suspend/resume cycle.
> >
> > wakeup-source:
> > $ref: /schemas/types.yaml#/definitions/flag
>
Kind regards
Uffe