Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Linus Walleij <linusw@kernel.org>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>, Ulf Hansson <ulfh@kernel.org>,
	Mark Brown <broonie@kernel.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Vinod Koul <vkoul@kernel.org>, Frank Li <Frank.Li@kernel.org>,
	Lee Jones <lee@kernel.org>,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-pm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	dmaengine@vger.kernel.org
Subject: Re: [PATCH v2 16/20] misc: sram: Enable runtime PM
Date: Mon, 14 Sep 2026 08:35:52 -0500	[thread overview]
Message-ID: <aqf4OEVpCX8XNQW1@SMW015318> (raw)
In-Reply-To: <20260914-ux500-power-domains-v7-1-v2-16-9d0c17e1f816@kernel.org>

On Mon, Sep 14, 2026 at 01:54:44PM +0200, Linus Walleij wrote:
> Enable runtime PM for generic SRAM devices after probe has initialized
> the SRAM mappings and partitions.
>
> This lets SRAM devices with attached power domains be managed through
> runtime PM references from their consumers.
>
> Assisted-by: LLM
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---

Reviewed-by: Frank Li <Frank.Li@nxp.com>

>  drivers/misc/sram.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
> index c8990e83a65a..7f19dca7b818 100644
> --- a/drivers/misc/sram.c
> +++ b/drivers/misc/sram.c
> @@ -13,6 +13,7 @@
>  #include <linux/of.h>
>  #include <linux/of_address.h>
>  #include <linux/platform_device.h>
> +#include <linux/pm_runtime.h>
>  #include <linux/regmap.h>
>  #include <linux/slab.h>
>  #include <linux/mfd/syscon.h>
> @@ -425,6 +426,10 @@ static int sram_probe(struct platform_device *pdev)
>  			goto err_free_partitions;
>  	}
>
> +	ret = devm_pm_runtime_set_active_enabled(&pdev->dev);
> +	if (ret)
> +		goto err_free_partitions;
> +
>  	if (sram->pool)
>  		dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n",
>  			gen_pool_size(sram->pool) / 1024, sram->virt_base);
>
> --
> 2.55.0
>


  reply	other threads:[~2026-09-14 13:36 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-14 11:54 [PATCH v2 00/20] pmdomain: st: ux500: Implement ux500 power domains Linus Walleij
2026-09-14 11:54 ` [PATCH v2 01/20] dt-bindings: power: Convert Ux500 PM domains to schema Linus Walleij
2026-09-15  1:51   ` Rob Herring (Arm)
2026-09-14 11:54 ` [PATCH v2 02/20] dt-bindings: arm: ux500: Drop NR_DOMAINS Linus Walleij
2026-09-17  8:09   ` Krzysztof Kozlowski
2026-09-14 11:54 ` [PATCH v2 03/20] dt-bindings: arm: Add the actual power domains on U8500 Linus Walleij
2026-09-17  8:11   ` Krzysztof Kozlowski
2026-09-14 11:54 ` [PATCH v2 04/20] dt-bindings: mfd: db8500-prcmu: Relax EPOD regulators Linus Walleij
2026-09-17  8:12   ` Krzysztof Kozlowski
2026-09-14 11:54 ` [PATCH v2 05/20] dt-bindings: display: ste,mcde: Allow power domains Linus Walleij
2026-09-17  8:17   ` Krzysztof Kozlowski
2026-09-14 11:54 ` [PATCH v2 06/20] pmdomain: st: ux500: Implement more " Linus Walleij
2026-09-14 11:54 ` [PATCH v2 07/20] ARM: dts: ux500: Rename power domains node Linus Walleij
2026-09-14 11:54 ` [PATCH v2 08/20] dt-bindings: cache: l2c2x0: Document power domain Linus Walleij
2026-09-17  8:18   ` Krzysztof Kozlowski
2026-09-14 11:54 ` [PATCH v2 09/20] dt-bindings: arm: pmu: Allow power domains Linus Walleij
2026-09-18 21:53   ` Rob Herring
2026-09-14 11:54 ` [PATCH v2 10/20] dt-bindings: clock: stericsson,u8500-clks: " Linus Walleij
2026-09-18 21:54   ` Rob Herring (Arm)
2026-09-14 11:54 ` [PATCH v2 11/20] dt-bindings: timer: arm,twd-timer: " Linus Walleij
2026-09-18 21:54   ` Rob Herring (Arm)
2026-09-14 11:54 ` [PATCH v2 12/20] dt-bindings: watchdog: arm,twd-wdt: " Linus Walleij
2026-09-18 21:54   ` Rob Herring (Arm)
2026-09-14 11:54 ` [PATCH v2 13/20] ARM: dts: ux500: Add " Linus Walleij
2026-09-14 11:54 ` [PATCH v2 14/20] pmdomain: st: ux500: Control DB8500 EPODs Linus Walleij
2026-09-14 11:54 ` [PATCH v2 15/20] drm/mcde: Use power domain for display power Linus Walleij
2026-09-14 11:54 ` [PATCH v2 16/20] misc: sram: Enable runtime PM Linus Walleij
2026-09-14 13:35   ` Frank Li [this message]
2026-09-14 11:54 ` [PATCH v2 17/20] dmaengine: ste_dma40: Use power domain for LCLA SRAM Linus Walleij
2026-09-14 21:02   ` Frank Li
2026-09-18 19:51     ` Linus Walleij
2026-09-14 11:54 ` [PATCH v2 18/20] mfd/regulator: db8500-prcmu: Remove EPOD regulators Linus Walleij
2026-09-14 13:24   ` Mark Brown
2026-09-23 15:20   ` Lee Jones
2026-09-23 17:21     ` Linus Walleij
2026-09-14 11:54 ` [PATCH v2 19/20] dt-bindings: display: ste,mcde: Deprecate EPOD supply Linus Walleij
2026-09-18 21:55   ` Rob Herring (Arm)
2026-09-14 11:54 ` [PATCH v2 20/20] ARM: dts: ux500: Remove DB8500 EPOD regulators Linus Walleij

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=aqf4OEVpCX8XNQW1@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@kernel.org \
    --cc=airlied@gmail.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=krzk+dt@kernel.org \
    --cc=lee@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=robh@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    --cc=ulfh@kernel.org \
    --cc=vkoul@kernel.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