All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: Shawn Guo <shawnguo@kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	 NXP Linux Team <linux-imx@nxp.com>,
	 Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>,
	Sascha Hauer <kernel@pengutronix.de>,
	patchwork-lst@pengutronix.de
Subject: Re: [PATCH] soc: imx: gpcv2: allow to disable individual power domains
Date: Sun, 3 Oct 2021 09:49:18 -0700	[thread overview]
Message-ID: <CAJ+vNU2=xRrZjVuH62kwFR_1519HvU4iEnk_Ki0JX7=TQy-Sbw@mail.gmail.com> (raw)
In-Reply-To: <20211002124852.1374617-1-l.stach@pengutronix.de>

On Sat, Oct 2, 2021 at 5:48 AM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> Some board designs don't supply power to all of the power domains,
> as they are not used anyways. In that case we must make sure to
> not touch those power domains at all, as trying to power up a
> domain that has no power supplied to it will obviously end in a
> system crash. Allow to disable those domains via the standard DT
> status property.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/soc/imx/gpcv2.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/soc/imx/gpcv2.c b/drivers/soc/imx/gpcv2.c
> index 811e9d29a079..b8d52d8d29db 100644
> --- a/drivers/soc/imx/gpcv2.c
> +++ b/drivers/soc/imx/gpcv2.c
> @@ -1035,6 +1035,9 @@ static int imx_gpcv2_probe(struct platform_device *pdev)
>                 struct imx_pgc_domain *domain;
>                 u32 domain_index;
>
> +               if (!of_device_is_available(np))
> +                       continue;
> +
>                 ret = of_property_read_u32(np, "reg", &domain_index);
>                 if (ret) {
>                         dev_err(dev, "Failed to read 'reg' property\n");
> --
> 2.30.2
>

Thanks Lucas, this resolves the issue I have with the
imx8mm-venice-gw7901 and blk-ctl.

Reviewed-By: Tim Harvey <tharvey@gateworks.com>
Tested-By: Tim Harvey <tharvey@gateworks.com>

Tested on an imx8mm-venice-gw7901 with v5 blk-ctl series [1]

Best regards,

Tim
[1] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=556563

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-10-03 16:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-02 12:48 [PATCH] soc: imx: gpcv2: allow to disable individual power domains Lucas Stach
2021-10-03 16:49 ` Tim Harvey [this message]
2021-10-05  6:28 ` Shawn Guo

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='CAJ+vNU2=xRrZjVuH62kwFR_1519HvU4iEnk_Ki0JX7=TQy-Sbw@mail.gmail.com' \
    --to=tharvey@gateworks.com \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=patchwork-lst@pengutronix.de \
    --cc=shawnguo@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.