From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A917A20DD51 for ; Wed, 13 May 2026 13:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778680517; cv=none; b=tDGaAte/KSFxQ9muxlOMJIUDdwPEWh5+L+nQHIwJ9+LwzPmQFC3PSlE+EYRkthLxhhdWTOJi+EVzxCvWcJZ6cN1h7+KVFK/2Mwa+B8YpF4odQ1QHLCmZGPyiEYtpmwdbNgxiBdpTJx6WImlNB7LBt1wHdSeRPgik+5iYq4hJ+Kk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778680517; c=relaxed/simple; bh=Sg22Ki1E0LIq6tnDfW9dCTXcNsA+L5xOvP7nRby3elc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ty6cMscNNj8h+1atT8y5EtBrj5sP1/NpKUB1BF+cW/FM195JchjF2N8TaF4HESV68MCSekmk1/KnFDmiZc7+at6Hm6aPKrNNjTHfy1atvFHyElQr/DqEJeZUdQNNhJZe2iIk40Y/WbtvyQxqkhlmHipKGK663uXsgSaSHmLRvzI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=HPGiUO7m; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=L0guWT17; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="HPGiUO7m"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="L0guWT17" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64DCROMW2965200 for ; Wed, 13 May 2026 13:55:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ANCRzftwcS6j7zoWU1eRpFbLwKzNuEIw5aZkdck9U0M=; b=HPGiUO7mto2IzB4S pdMQ2NtnSqHjvsYfCLl+JZsT471Nl1jcgMjdDsbZCCUtBdLh5QWUTYpMVk4pNaCM sB3o9sM5c5hVHLNCjSqv+be3P8fS3xOc8wORoq+YD2ffudPBVs9Wa+pU/mqSIm8u jDu3fusTgdpvFNU76634UXbAlA7bCMkdCZeZyUrYfunaR8H0PjFlTRP1190BQKmV tdk2bdtlv4Y33SKSxMH4QKyRC3FAcehaDjV1GwQBfaBZYBzsw6atuSRyXh5Axz4V CGhv6P1RLcRlUlGF7NjvjWob/cXuw45qiYJOkuIEpNe8gVPiDnFO1B3aJGspgxiC YUFE/g== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e4ma59mre-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 13 May 2026 13:55:14 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-c802545ae0eso4040767a12.2 for ; Wed, 13 May 2026 06:55:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778680514; x=1779285314; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ANCRzftwcS6j7zoWU1eRpFbLwKzNuEIw5aZkdck9U0M=; b=L0guWT17jOl22gyCnwpnIKpYvU5O1SVQI9YSy1y7VGIuX45mP0pomXiX16Jrfst9+4 fgLIO7TOlE0tNdfCfjhbzE2tujpbLQ4frFFZosoEQ0OxZt5zfQ4vn5ADUBvZZgTczR9v Wlg+8mdDd1xhc5EdZ+dpGqV9rboM95O6owLyPId7yM1/Tb25bm7fLL/u5jTJQupQhLSp KX9R3+IOwXnMr1hEeEJrHMky28TP+hl4UPoepkQtx2emZyhe1aKLLJ6zIlTVOn2uAmPy aUWVMHZdSjcYUA3XYPn0wYJF42HQ2IBbi5hNBAdiTUSnwoMPfekO0UWJpZW4Y51fYQ9J GnEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778680514; x=1779285314; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ANCRzftwcS6j7zoWU1eRpFbLwKzNuEIw5aZkdck9U0M=; b=jx4fci6RA6oEywrP+ofIVRMZu5zIfYaDMD1TNPNFe7+AV0LtZayEIxrNtmAOgxcPdR L/VcfkTMJz4UPWZtFs2OvqQWu7olcUl1NuE9ket/XADiwIiG5Gvosw/uI5xnwo8ow+RG aHCY1T/TX3G/qLBV2YKCT1KOXzva9Xb4S5a4GaeBX2lH9SSK5tkj3IoLUsUKTxS3bTt7 rxfiOVGxZJ1SP9worwq5ywkqbJSd57Y+v5CGJmFuX6RG8fmqUK38C4CA18e37RurSXCO p1TdZHDAQea2KPZcRTx2LCUqcdDDnLZzJsxZAyP9CfEh3WahWOMB5DFZEI+1/rvkntI6 YzGw== X-Forwarded-Encrypted: i=1; AFNElJ8yCbqa5WNSwcWdiy/la3H/exVpfTgV0aNl8tzmxUmW+CkDW7KNJclMeXKKnWKOZ5gpZbWrfws095Fr6p4=@vger.kernel.org X-Gm-Message-State: AOJu0YwcU2M85eOaz/dY9CQ8CjIpO/omMQXyFTO1N1wc97loHj9Z22/F Qo/no3TqB45T1wYyTl8TWdToP2TEl353B8tCxA/+hQqqNqAfW9Yu2dz0z4Jqv2GuZ/Zn21vNJWQ t0GaPnQguTLl7XLmx8iyL08sShb633NcY0mQLS8ai/9B3A9gqSsPYzL9ccHio6qxoylc= X-Gm-Gg: Acq92OF7EjwDVDoner8vzqAdDfzWT/SfrA/tp/SLa99wHei6FLrOl6uxpCNcf5PA1Vy 2q2AVffQx49uUkE/ZgaWmTXlbSFutp2Crp+01TabODVgYK3VhtO/HXN70ZLT83cIxV/kmRWGs+p TN37I9nZtHp1J1tUAQpXGLIp5c3qPb4oXKayohbhXJCkgtbmuY5/xl99k45e5Vbd+AMSPM1wx72 /RDRzhVch+6E/DFfGgc45dx6mspDWrufhgI5uSA4p4HnFtrlSyNIAgXm0Gi3KcRFURavf6qW2T2 cT6Sju3ix0OAMv2QxIbitxAeYzuYSpLGflW87uwhh33d9MNB47Fa7RcHk6mxDuiwdo3yucCZoer kEYxzkwHBNO9n0RrIyITfhSOg/ZgVww4lX8vBg9NyQvhSJ16OuA== X-Received: by 2002:a05:6a20:431c:b0:3a2:d976:2210 with SMTP id adf61e73a8af0-3af8006b01fmr3709090637.8.1778680514115; Wed, 13 May 2026 06:55:14 -0700 (PDT) X-Received: by 2002:a05:6a20:431c:b0:3a2:d976:2210 with SMTP id adf61e73a8af0-3af8006b01fmr3709039637.8.1778680513521; Wed, 13 May 2026 06:55:13 -0700 (PDT) Received: from [10.219.49.212] ([202.46.23.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c8267688fe2sm20084373a12.9.2026.05.13.06.55.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 May 2026 06:55:13 -0700 (PDT) Message-ID: <8cdca0cf-7b36-4aef-bc93-c611611b32b7@oss.qualcomm.com> Date: Wed, 13 May 2026 19:25:09 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] pinctrl: qcom: lpass-lpi: Enable runtime PM hooks on remaining SoCs To: Dmitry Baryshkov Cc: Bjorn Andersson , Linus Walleij , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260508113636.3561383-1-ajay.nandam@oss.qualcomm.com> <20260508113636.3561383-2-ajay.nandam@oss.qualcomm.com> Content-Language: en-US From: Ajay Kumar Nandam In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDE0MiBTYWx0ZWRfX+65O1SJlmwWN 7Vi0jI73UO3BRqWtzxorBUB6F7VY3KUXaHNzPIHJKZ9dmN1l/TPQLUqnVitIf0OaBG2eKYVI9IM hh2ZG8PYlEFiRoxfSZt/dNYj9mNev8KfsegHE7j6ntbgp7wtw71I1H8fOAx8KP2Dt496O5miHSW YNktGM8MXapAsg8da3aAlmovkBbD9FCX5/hLKCE6UEL/ETtaY+qPGnh3uhAEpcnCuVKyQtfgjJ+ ptOMKK52cKqMG0CtujKRyATkhfMWnmpDTEY/h40hNNfs2Ll0B29NstO3iD59KgS/SHc6k+pL5nn P4H+W6GzxRo6uisrEPA0VkuAxALcQc9vt5s200+YSsVqyo2PanLVAciCjtUEwklfv1s2DPwCzEP n+0DjMA8slwnicnKOIxWgKTZ5pIuroSWCJLFwUveZipjWlIY1ynxTnk/yWrvxv/e4P/El0gdCGT mGhhJ6nkAFEJ7W9Lntg== X-Proofpoint-ORIG-GUID: usHLKEC_3-9GJc4AzYIXleHksUwz7v5n X-Authority-Analysis: v=2.4 cv=TJZ1jVla c=1 sm=1 tr=0 ts=6a0482c2 cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=j4ogTh8yFefVWWEFDRgCtg==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=lFrEOrpXHASGKh8PcUEA:9 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-GUID: usHLKEC_3-9GJc4AzYIXleHksUwz7v5n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-13_01,2026-05-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 impostorscore=0 spamscore=0 phishscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605130142 On 5/13/2026 6:18 PM, Dmitry Baryshkov wrote: > On Fri, May 08, 2026 at 05:06:35PM +0530, Ajay Kumar Nandam wrote: >> The LPASS LPI core conversion to PM clock framework relies on variant >> drivers wiring runtime PM callbacks. >> >> Hook up runtime PM callbacks for the remaining LPASS LPI variant >> drivers so all SoCs using the common core get consistent pm_clk based >> clock handling: >> - milos >> - sdm660 >> - sdm670 >> - sc8280xp >> - sm4250 >> - sm6115 >> - sm8250 >> - sm8450 >> - sm8550 >> - sm8650 >> >> This is a mechanical per-variant driver update that relies on the >> same generic PM clock flow (of_pm_clk_add_clks() + pm_clk_suspend/ >> pm_clk_resume()) and DT-provided clocks. >> >> Runtime behavior was validated on Kodiak (sc7280). >> >> Signed-off-by: Ajay Kumar Nandam >> --- >> drivers/pinctrl/qcom/pinctrl-milos-lpass-lpi.c | 7 +++++++ >> drivers/pinctrl/qcom/pinctrl-sc8280xp-lpass-lpi.c | 11 +++++++++-- >> drivers/pinctrl/qcom/pinctrl-sdm660-lpass-lpi.c | 7 +++++++ >> drivers/pinctrl/qcom/pinctrl-sdm670-lpass-lpi.c | 7 +++++++ >> drivers/pinctrl/qcom/pinctrl-sm4250-lpass-lpi.c | 7 +++++++ >> drivers/pinctrl/qcom/pinctrl-sm6115-lpass-lpi.c | 7 +++++++ >> drivers/pinctrl/qcom/pinctrl-sm8250-lpass-lpi.c | 11 +++++++++-- >> drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c | 11 +++++++++-- >> drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c | 11 +++++++++-- >> drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c | 11 +++++++++-- >> 10 files changed, 80 insertions(+), 10 deletions(-) >> >> @@ -173,10 +175,15 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); >> >> +static const struct dev_pm_ops lpi_pinctrl_pm_ops = { >> + RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) >> +}; >> + >> static struct platform_driver lpi_pinctrl_driver = { >> .driver = { >> - .name = "qcom-sc8280xp-lpass-lpi-pinctrl", >> - .of_match_table = lpi_pinctrl_of_match, >> + .name = "qcom-sc8280xp-lpass-lpi-pinctrl", >> + .of_match_table = lpi_pinctrl_of_match, >> + .pm = pm_ptr(&lpi_pinctrl_pm_ops), > > Incorrect indentation > >> }, >> .probe = lpi_pinctrl_probe, >> .remove = lpi_pinctrl_remove, > >> @@ -134,10 +136,15 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); >> >> +static const struct dev_pm_ops lpi_pinctrl_pm_ops = { >> + RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) >> +}; >> + >> static struct platform_driver lpi_pinctrl_driver = { >> .driver = { >> - .name = "qcom-sm8250-lpass-lpi-pinctrl", >> - .of_match_table = lpi_pinctrl_of_match, >> + .name = "qcom-sm8250-lpass-lpi-pinctrl", >> + .of_match_table = lpi_pinctrl_of_match, >> + .pm = pm_ptr(&lpi_pinctrl_pm_ops), > > Incorrect indentation ACK, fixed in V5. > >> }, >> .probe = lpi_pinctrl_probe, >> .remove = lpi_pinctrl_remove, >> diff --git a/drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c >> index 439f6541622e..a79f99ec6df9 100644 >> --- a/drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c >> +++ b/drivers/pinctrl/qcom/pinctrl-sm8450-lpass-lpi.c >> @@ -6,6 +6,8 @@ >> #include >> #include >> #include >> +#include >> +#include >> >> #include "pinctrl-lpass-lpi.h" >> >> @@ -202,10 +204,15 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); >> >> +static const struct dev_pm_ops lpi_pinctrl_pm_ops = { >> + RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) >> +}; >> + >> static struct platform_driver lpi_pinctrl_driver = { >> .driver = { >> - .name = "qcom-sm8450-lpass-lpi-pinctrl", >> - .of_match_table = lpi_pinctrl_of_match, >> + .name = "qcom-sm8450-lpass-lpi-pinctrl", >> + .of_match_table = lpi_pinctrl_of_match, >> + .pm = pm_ptr(&lpi_pinctrl_pm_ops), > > Incorrect indentation ACK, fixed in V5. > >> }, >> .probe = lpi_pinctrl_probe, >> .remove = lpi_pinctrl_remove, >> diff --git a/drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c >> index 73065919c8c2..9037ef0020da 100644 >> --- a/drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c >> +++ b/drivers/pinctrl/qcom/pinctrl-sm8550-lpass-lpi.c >> @@ -6,6 +6,8 @@ >> #include >> #include >> #include >> +#include >> +#include >> >> #include "pinctrl-lpass-lpi.h" >> >> @@ -210,10 +212,15 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); >> >> +static const struct dev_pm_ops lpi_pinctrl_pm_ops = { >> + RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) >> +}; >> + >> static struct platform_driver lpi_pinctrl_driver = { >> .driver = { >> - .name = "qcom-sm8550-lpass-lpi-pinctrl", >> - .of_match_table = lpi_pinctrl_of_match, >> + .name = "qcom-sm8550-lpass-lpi-pinctrl", >> + .of_match_table = lpi_pinctrl_of_match, >> + .pm = pm_ptr(&lpi_pinctrl_pm_ops), > > Incorrect indentation ACK, fixed in V5. > >> }, >> .probe = lpi_pinctrl_probe, >> .remove = lpi_pinctrl_remove, >> diff --git a/drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c >> index f9fcedf5a65d..513ddc99dd37 100644 >> --- a/drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c >> +++ b/drivers/pinctrl/qcom/pinctrl-sm8650-lpass-lpi.c >> @@ -6,6 +6,8 @@ >> #include >> #include >> #include >> +#include >> +#include >> >> #include "pinctrl-lpass-lpi.h" >> >> @@ -217,10 +219,15 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { >> }; >> MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); >> >> +static const struct dev_pm_ops lpi_pinctrl_pm_ops = { >> + RUNTIME_PM_OPS(pm_clk_suspend, pm_clk_resume, NULL) >> +}; >> + >> static struct platform_driver lpi_pinctrl_driver = { >> .driver = { >> - .name = "qcom-sm8650-lpass-lpi-pinctrl", >> - .of_match_table = lpi_pinctrl_of_match, >> + .name = "qcom-sm8650-lpass-lpi-pinctrl", >> + .of_match_table = lpi_pinctrl_of_match, >> + .pm = pm_ptr(&lpi_pinctrl_pm_ops), > > Incorrect indentation ACK, fixed in V5. Thanks Ajay Kumar > >> }, >> .probe = lpi_pinctrl_probe, >> .remove = lpi_pinctrl_remove, >> -- >> 2.34.1 >> >