Re: [PATCH v2 1/2] pinctrl: qcom: lpass-lpi: Move dev_pm_ops to the common driver

From: Bartosz Golaszewski

Date: Mon Nov 23 2026 - 09:37:22 EST


On Wed, Nov 18, 2026 at 07:07:30PM +0530, Gopi Chandra Sekhar Reddy Kanala wrote:
> All the SoC-specific LPASS LPI drivers probe through the common
> lpi_pinctrl_probe(), which sets up pm_clk and runtime PM, and each of
> them defines the same dev_pm_ops with only the pm_clk runtime callbacks.
>
> Define the dev_pm_ops once in the common driver, next to the code that
> sets up pm_clk and runtime PM, and export it for the SoC-specific
> drivers, so the PM callbacks only need to be changed in one place. Drop
> the pm_clock.h and pm_runtime.h includes from the SoC-specific drivers,
> as nothing there uses them anymore.
>
> No functional change.
>
> Signed-off-by: Gopi Chandra Sekhar Reddy Kanala <gopi.kanala@xxxxxxxxxxxxxxxx>
> ---
> drivers/pinctrl/qcom/pinctrl-hawi-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 4 ++++
> drivers/pinctrl/qcom/pinctrl-lpass-lpi.h | 3 +++
> drivers/pinctrl/qcom/pinctrl-milos-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sc8280xp-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sdm660-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm4250-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm6115-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm6350-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm8250-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c | 6 ------
> drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c | 6 ------
> 15 files changed, 7 insertions(+), 78 deletions(-)
>

Ok, I do like this diff after all. I'll queue this for v7.5.

Bart