From: Frank Li <Frank.li@nxp.com>
To: carlos.song@nxp.com
Cc: o.rempel@pengutronix.de, kernel@pengutronix.de,
andi.shyti@kernel.org, shawnguo@kernel.org,
s.hauer@pengutronix.de, festevam@gmail.com,
linux-i2c@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] i2c: imx: switch different pinctrl state in different system power status
Date: Mon, 25 Nov 2024 12:10:25 -0500 [thread overview]
Message-ID: <Z0SvgdJGs6ccAk4W@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20241125134322.1611845-1-carlos.song@nxp.com>
On Mon, Nov 25, 2024 at 09:43:22PM +0800, carlos.song@nxp.com wrote:
> From: Carlos Song <carlos.song@nxp.com>
>
> Switch different pinctrl state in different system power status.
>
> Signed-off-by: Carlos Song <carlos.song@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> ---
> drivers/i2c/busses/i2c-imx.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
> index f751d231ded8..cf8931a8013d 100644
> --- a/drivers/i2c/busses/i2c-imx.c
> +++ b/drivers/i2c/busses/i2c-imx.c
> @@ -1859,6 +1859,7 @@ static int i2c_imx_runtime_suspend(struct device *dev)
> struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
>
> clk_disable(i2c_imx->clk);
> + pinctrl_pm_select_sleep_state(dev);
>
> return 0;
> }
> @@ -1868,6 +1869,7 @@ static int i2c_imx_runtime_resume(struct device *dev)
> struct imx_i2c_struct *i2c_imx = dev_get_drvdata(dev);
> int ret;
>
> + pinctrl_pm_select_default_state(dev);
> ret = clk_enable(i2c_imx->clk);
> if (ret)
> dev_err(dev, "can't enable I2C clock, ret=%d\n", ret);
> --
> 2.34.1
>
prev parent reply other threads:[~2024-11-25 17:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 13:43 [PATCH] i2c: imx: switch different pinctrl state in different system power status carlos.song
2024-11-25 17:10 ` Frank Li [this message]
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=Z0SvgdJGs6ccAk4W@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=andi.shyti@kernel.org \
--cc=carlos.song@nxp.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=s.hauer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox