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 21CDB44C64B for ; Mon, 19 Oct 2026 05:01:59 +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=1792386124; cv=none; b=Te9hdpm0/lcxUYhBn/C/9r52SokhBBwEBXOy+oof6CCdumO3N5DpxIyFAm3bh5mBAE3oC11yLB2Zbg4GyFKrJIS6g4O241ER9n3UI5gZoFkJXhotVm8ygqpawLIMGwtO3n681ebIpDR7XGXp6ZlXNxsdX3l79P8EzROFYEY6UdY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792386124; c=relaxed/simple; bh=kn+5ESPtj0RJi5bfjx0hmp39+NNbUKQWRWiWu6lWa/A=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=RPgvHG5ogXoQAKftH785acsuAieGsmodcAWN/8Sj84Hu/gamogiNbSe0+ZvBJXW5lTkDKaRPmUdY4S/+crPq/kRFX/8iyoWjIgPh2WkNAz0Zj35txwp94d/iPe35h8Kg89Jvj75Z+TBNkcpZNBQCj69KvZubpA4IePes+l1TUcY= 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=GsxGsQ3Z; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=VeVhDwuz; 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="GsxGsQ3Z"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="VeVhDwuz" 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 69J4jIY5241205 for ; Mon, 19 Oct 2026 05:01:59 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= Or4asT3KXALdKFQAYnB0KiA0P++DP8jjRqXZ1+HPl+w=; b=GsxGsQ3ZT2d72ntA vOk5NPWBt31GRMqA0xsZeC9RYAz9haqBlKgYh/M/xN46UgSqdVQkmHPro1UsZZV9 ihIsdPlDpDCuIXXSIadLIGd1PhTZ7QEiGd1jjmtw/PIeSQ3VWAWn8QkWYeGT0uCV 986bCuOSyFiQTgz526cb6J2ONVNr7SfM64Gh8GWbCHpHAjD7ZAMcLKmiTlSGr2na 3KBOS7qzAjlx+Jo9mvKmH3DzyIzhBMlV0NzvjsCqD+CfjtyG7Q+cfSUP4d7e/IAz QIT2z1Q5kfowxVFcGNXca7cv51P5gqpaNNeln6SiDAWHRv08M1BT/X1kgrlKdvpU G9l23Q== Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hc26k4rcu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 19 Oct 2026 05:01:59 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-359b81ad4e8so3139521eec.0 for ; Sun, 18 Oct 2026 22:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792386118; x=1792990918; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Or4asT3KXALdKFQAYnB0KiA0P++DP8jjRqXZ1+HPl+w=; b=VeVhDwuz++H5IGv8o+D+SJppodlwZQgNWNbSB623enXkLIqwLO27XTI9O7IT7Jnwxk ADl2rLBz5PACockZn2VMMH1dAD+h5yE2Vl+nUkxX8Cw+pOdQm5YOtteLa8BCRJRXPqhy 8yxsYnE5+F2gA/1ktx8kgvuV7m5oeDzZ7JgdasNahovKq4e/+jUt8j2ZtS7w2DV+G8FH qdaYFR0keAQkVXu8HmAP8VsK1qpmX9iAEPCnyOAxq4RIluKQiQemOKjXUcJyQPjuhlG1 u5H44E/SaDZyjCCxExl1yfiHGARCNETdOksdkaXSOMCKm8CPIK15teCn7+uA8Y2zFHXA PEGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792386118; x=1792990918; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Or4asT3KXALdKFQAYnB0KiA0P++DP8jjRqXZ1+HPl+w=; b=MtfisttCs/o5V37C4pvzXfMQDA5AvQH6rTcyBaAkbKo/erlpmOchRZFFWrE9rIL05d 7AKBTbg7wjSgf75kBqbd7RZkAFh1E5SZ94j6EFo2VPYrtctt9F6VXXocggCl/4ex0cIt pLXjgGGBPjLKQ5WqF0MIJndO9mWAD2kV7rh9lUHyKH/wZS+qLL21pyRZQknIqIw0eC9V ZXj7FP6rm6FZiwcoVKmL2X9xCBEDtf0PVYJOx5U6cpeocUVckAH81In9cCsNkaWxZ7al aZg0nHmyoZ978CLLNO/dfyYZFhSkPCo5yydPi256Vvk9mcJvpVJWEWWIShlFvFXNiPzM EQNA== X-Forwarded-Encrypted: i=1; AKwUvBySmF4owvcvtgfybaHO3m/aB2owwJ96QmXliJAuM9jYzYUxVY1imDQ6CyfMWkoXzATrFLT2u/j4q45SRrc=@vger.kernel.org X-Gm-Message-State: AFq9FYKkDs44sgikZdHAf+U02Y8491DerpvIwo70FCVKSjDcmnzlUvBR JXAIRTiOCcaOwKk3s8Ashyy7WSaeBwcBaskskxzfZVijCd1Zy7uug/htv7e3PKu9nJu8iTWuJpz 4qPxgTJr1LvpT3bhKsRZh6hjFGiuvADLpO8GS17dllEvyeEwJF23qdOCfZEy7GrJK5dY= X-Gm-Gg: AYBFou0vQKcpD0mlDLHs2goTyOjLhKaZVBum9CRN9yG0tIhQY1UcLgz6TZvRkucQw+G i/DClVNOqihIdWoN0rvicS0tcnTqbU/R2t9V+dhE97XE7GqVdlvStBFOUJoNS+A8RY0pGpx5uI1 nLbimyy7BMMK1KXhtjIewg9t5VVS8f3gzaFFAPB+2KmS8P4m3Bn2WjjCR0q9pIoHzMhG+KzsQQT yhlurtpreOFTa70y1sLCj46SDURxQm49bZV27aNWGzyii3sAMYnDDISymcI/EYegjtcPGu3JJ8n xLxP2f/X7N4O0LM/rYFgu4WyxM+lwP1KEk6ouH6H0CbXEfuOhHV/GN04w0PxCMLss9TC0NKA6UA 1Y6SmGpaC+N246LkLnwhI1VHwN1u3 X-Received: by 2002:a05:7022:28b:10b0:16f:c9db:c5af with SMTP id a92af1059eb24-185118eded7mr10365909c88.11.1792386118143; Sun, 18 Oct 2026 22:01:58 -0700 (PDT) X-Received: by 2002:a05:7022:28b:10b0:16f:c9db:c5af with SMTP id a92af1059eb24-185118eded7mr10365874c88.11.1792386117582; Sun, 18 Oct 2026 22:01:57 -0700 (PDT) Received: from [10.218.7.34] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-1831a6f58c2sm38132385c88.11.2026.10.18.22.01.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Oct 2026 22:01:57 -0700 (PDT) Message-ID: Date: Mon, 19 Oct 2026 10:31:50 +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 From: Jishnu Prakash Subject: Re: [PATCH v2 7/7] mfd: qcom-pm8008: Tolerate missing interrupt To: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, mfd@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dhruvin Rajpura , Nihal Kumar Gupta , Kamal Wadhwa , Oleg Keri , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guru Das Srinagesh , Liam Girdwood , Mark Brown References: <20261014-pm8010_i2c_support-v2-0-b395d2b3f668@oss.qualcomm.com> <20261014-pm8010_i2c_support-v2-7-b395d2b3f668@oss.qualcomm.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE5MDAxOSBTYWx0ZWRfX5VvgAcIfmcEa KmCkGMzFd4SM4q0LO9VF7M8RUeghv3AjoYghNtHE9jlSf1y9fYQ/uSIPmS08XGpbN7qzJNioj5w BQg3BEc02G2AIyE/boEZpHJpgH4pLocBAO1PeTDy/4KCjL73p3uOf0ke3+XupEFT0AiYgIJt/8P z+viYEGGPh2yW4SLhOGFD+9crGzO5MKuoiSDLU1CPpL6JzmPYHmmtchhm7MSVEMTQjuXH7C8eSc nmu9emxz6F1ZPcctg8S/TaM3Zu2R/Zb/ZOuzmQ0FFS4eyR7bIoZm9VSGm4WgWZ1shUAubfJ6zw/ xdav7M4lMdJ9Q6D5GwylC8hJ4Fw2h24AF3sw3sJJDYzxSMne0nYOXw52xh7e14t/iCNHqHdhUA2 bEJnDeoZ4H8taNPe6e6BrVe9h78rFbH72S2MKhsiiUGskT3eQ5/ImcTnIgvem39TVLaea6f9Si9 0nAvWLJkCGupRN2tUgg== X-Proofpoint-GUID: oVq7vwqhr8p402ijys2y7-94PsoNYQdP X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE5MDAxOSBTYWx0ZWRfX8t+8GK+kIqPP bQOu+wvoOir43GG5nf7NDjxMQBPDcxowq1OA58X+AVHrPR7TvvKNAYTYHn9iSBW0Ydy//d5EMNb UFwVCGyGUAwXqy7oCCdWBsscvzlNxVQ= X-Proofpoint-ORIG-GUID: oVq7vwqhr8p402ijys2y7-94PsoNYQdP X-Authority-Analysis: v=2.4 cv=Cowq4X4D c=1 sm=1 tr=0 ts=6ad5a447 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=FgZ6Ug7uWDD4XhXpjZ0A:9 a=QEXdDO2ut3YA:10 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-19_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610190019 Hi Konrad, On 10/15/2026 5:35 PM, Konrad Dybcio wrote: > On 10/14/26 12:32 PM, Jishnu Prakash wrote: >> From: Konrad Dybcio >> >> PM8010 is often wired up with the interrupt pin tied to ground. Only >> register the IRQ infrastructure if we have a parent irq. >> >> Signed-off-by: Konrad Dybcio >> Co-developed-by: Dhruvin Rajpura >> Signed-off-by: Dhruvin Rajpura >> Co-developed-by: Jishnu Prakash >> Signed-off-by: Jishnu Prakash >> --- >> drivers/mfd/qcom-pm8008.c | 82 ++++++++++++++++++++++++++++++++++------------- >> 1 file changed, 60 insertions(+), 22 deletions(-) >> >> diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c >> index 4179427f3891..8b1bbb4052a7 100644 >> --- a/drivers/mfd/qcom-pm8008.c >> +++ b/drivers/mfd/qcom-pm8008.c >> @@ -208,6 +208,14 @@ static const struct mfd_cell pm8010_cells[] = { >> MFD_CELL_RES("qpnp-temp-alarm", pm8008_temp_res), >> }; >> >> +static const struct mfd_cell pm8008_no_irq_cells[] = { >> + MFD_CELL_NAME("pm8008-regulator"), > > There's no reason to not register the temperature alarm driver > if we don't have an irq. It will not be able to carry out the > "alarm" part, but one can still poll on it. > That suggestion does make sense, but I think it would not work, for multiple reasons. Let me explain them here. If we are talking about using drivers/thermal/qcom/qcom-spmi-temp-alarm.c, the driver has this check in the probe: irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; So its probe would fail right now if it does not have an IRQ specified. Another point is, PM8010 does not have an ADC peripheral. Without an ADC channel to read from, temperature read from this temp-alarm driver would show a constant value most of the time (37000, for stage 0) and this would be updated only if a high temperature stage (possibly around 90-100 degC) is crossed, so it may not be very useful for polling without interrupts either. And another point we should note is, the MFD cell name "qpnp-temp-alarm" used right now does not bind to our temp-alarm driver and this was intentional, as explained by Johan Hovold in his change (mfd: pm8008: Rework to match new DT binding), in the last paragraph of the commit message: Finally, note that the temperature alarm and GPIO subdrivers need some minor rework before they can be used with non-SPMI devices like the PM8008. The temperature alarm MFD cell name specifically uses a "qpnp" rather than "spmi" prefix to prevent binding until the driver has been updated. Since these changes are not yet done, we cannot use temp-alarm for PM8008 or PM8010 over I2C for now. Thanks, Jishnu > Konrad