[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z2O26jWagFtsWJd8@pengutronix.de>
Date: Thu, 19 Dec 2024 07:02:18 +0100
From: Oleksij Rempel <o.rempel@...gutronix.de>
To: Carlos Song <carlos.song@....com>
Cc: andi.shyti@...nel.org, frank.li@....com, kernel@...gutronix.de,
shawnguo@...nel.org, s.hauer@...gutronix.de, festevam@...il.com,
linux-i2c@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] i2c: imx: switch different pinctrl state in different
system power status
On Wed, Dec 18, 2024 at 12:41:14PM +0800, Carlos Song wrote:
> Switch different pinctrl state in different system power status.
>
> Signed-off-by: Carlos Song <carlos.song@....com>
> Reviewed-by: Frank Li <Frank.Li@....com>
> ---
> Change for V2:
> - Add Frank reviewed-by. No code change.
> ---
> 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 b6ed270dd04b..350346a7892c 100644
> --- a/drivers/i2c/busses/i2c-imx.c
> +++ b/drivers/i2c/busses/i2c-imx.c
> @@ -1871,6 +1871,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;
> }
> @@ -1880,6 +1881,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);
Both pinctrl_pm_select_sleep_state() and
pinctrl_pm_select_default_state() may fail. Please use return values.
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Powered by blists - more mailing lists