From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 1BF90469840 for ; Wed, 23 Sep 2026 10:17:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158662; cv=none; b=Oi0iB2nd1N3e4vqG051Y/7bl2hK0UIwVn2BWXsLa4O+WkzrcAwEZ+CYMutVSnGUit1or08oeqqV8in6HmTst5xufGRkRcyecUQ2Zop1jBJnlBh3SYamkKVskfJzrqUvU3b5SgzdqGbA5O2SCsKtBnjtAsM5MIl/hsTxdCbst/ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790158662; c=relaxed/simple; bh=Cpd9CUfAbQydr+/IWp35YEM2rThT3kvF1eNAivlA27Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dZWBbqofgGBUj+zkcykLjZdXXc1TPVQzy2aPgpdLEPalaXLd+QxB7ZbJ7iVghRxvYHv35nllFF0H2Ik40o4MTc/WSF0aRKBRihvaARbZ18ycfoAlpYb9/hMdo7M/TUNkfMsAy1rSXWf4gnqkIeI6+dV9ImbaGEzqiZjAKWOfgCw= 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=GstYEKl6; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=UJtxbpgm; arc=none smtp.client-ip=205.220.180.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="GstYEKl6"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="UJtxbpgm" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68NA3DUH2262153 for ; Wed, 23 Sep 2026 10:17:30 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= CkYoHcJPz+rso7SJkc9SF8LO31/cRTOGFpw9v5udueA=; b=GstYEKl6e7NVVYY/ vDZMKaqplJZJUpuhDcZFPcVsn98JNSCcXJQ+yzXcC10FA+aD2l0ljinl4rWoxBg7 O9d6zz5P8w73JjZL9R7tTRFhsaWR/l6YJ/3IG+VbSnZGfkLsywJgCZ7bN9ViBndn ZLvYNQCH5iKZg3stQtfGkf1DO6Sdi7OJemNLgghkyHX1jhxDrWNQ79+GQROUveoz zGPWM4oMCuOUFWfLgHkBagUmP00kIcvSFQCOCdZQtUwkf3vVHNWxtzONGxuQjsQM 0ARkpPe18yWd7vg7WN0EkPz5dRjjmND+jBLkgs1BGKC9DvY48Pf+bD0VYhJuD+Q9 Gv39eQ== Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4guy2c3g5e-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 23 Sep 2026 10:17:30 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-32850005b6bso902907eec.0 for ; Wed, 23 Sep 2026 03:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790158649; x=1790763449; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=CkYoHcJPz+rso7SJkc9SF8LO31/cRTOGFpw9v5udueA=; b=UJtxbpgm0sGoX3tQ+7qZsdZXcxN+BixwiuLv5fNj7aLQj4AMhzBrh2KxZ1Y3N6I6Zd YTtBTO1atdqEK2SfZZTKTPdDSB6wxaYLVHVDA7c7y/BKNoDzPhUCPXSFMpp6bSomY+jw B5lVWIfYGC9RVyd9qFm2A2Ae9aQQOnKgk6l7nHmdEy34kk9dClOKsxlRgWO3e68xb+RS bBqxB7FHrpYaAsw+72vfkQvEnzhCIhV2cndmLaM80/QVfcd2zpZm7vGGacSGgEC74nlr tF2PQyM515AHRW2ohRyVuOd36YTN2tBXWbFICkchaXK23BhOFv/NM1JgHU9M54q5Dp+J cw/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790158649; x=1790763449; h=content-transfer-encoding:content-type: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:content-type; bh=CkYoHcJPz+rso7SJkc9SF8LO31/cRTOGFpw9v5udueA=; b=C5kAOm5fxFrEYPKT9YmCF23Z592C65U9sguzRcRaxZdH9pqf47tlFlBg1AhcDW9kqX esWpsdO9mu7Mr1kiJGSc4gCeOBxUg3911569NRXZFOqdHSx29f7WopNUfqB3RJrzwJ+g 8b42L2k34ru0w1uILnIAo9a4dSzhTCIZEqers8jWPlsOSNi70epke9w1MVI2a6xd2PYF huW2D+3njMNqOEIl78RJZTqFPAf0w1FbC9mnGcim3SayYNIfCP7y5L5dFnax29qC9xrD dqmxEtDlBQXGW7qXn6DqBDk/pTqzSAJ0EGE+UdTRGoZEH5fqdCDU29BymmUV8NE8e4HK pB6Q== X-Forwarded-Encrypted: i=1; AKwUvBxnvcZVUWQzyJSvLlUJxHhzN/hHHu6rOwk5zzDDh2KP1zU16R8qdSZ4OPHFD6VHxdvlCH7kxH2HKTdmD8U=@vger.kernel.org X-Gm-Message-State: AFuF++nALwscXxa6ZldPrlVMAKYjgeh2Y80L4Eqf2a7B0o3htYMiRB88 Kk7b0rbwh6RZhN2p+on/CQYREVZTcwxWbJcKoUbvfmtgxEYbNKnhiUb6KqZ1fzWQOeWlJeKeuF2 6mWrJEdxMkzcQQsV4jvZxjQxFVeHT8funCU6CVUJiFC7mpwfN/v6UR75Gl7o4NS61Xmo= X-Gm-Gg: AYBFou1GBuPrsfHk0mB8rCryolnDFIXqbcdsX6kbn9/+UWqEGmDtiEj0duOS8EIoTGr ifnU1q9nOOQCStNAh+FELlYRBXyn06yTq/AUzSvqrZE5F0Lzw0xZt1i896hzHxjMBSQ65sKzeLH Esso1Tj7Tz8ctHlRminl/ldRtdHn9+48fR1+fLi53N2B0W7F7ryKhzoOlRBQ1qKmkBZ5xAxTCLN TuaeGcBIavof7rsgLuwmKqOT7Y02rnzIlbpcOMA51qYkwYrHq7ZdRYKcK9KeB7ZX/hfYcPdazbu +7WzQGnXqZzKSLovDZkB+32Hpwqp7eOMpm3d8K2L/J4sRJTak4fjvwqxBiwtaL1XxYuvRRDA1yA NRSX+4/oh39mAxYPB1zzF4YO7Mo2I X-Received: by 2002:a05:7300:b2a6:b0:33b:afc9:caa9 with SMTP id 5a478bee46e88-33e8e2b7ddfmr2231475eec.38.1790158648913; Wed, 23 Sep 2026 03:17:28 -0700 (PDT) X-Received: by 2002:a05:7300:b2a6:b0:33b:afc9:caa9 with SMTP id 5a478bee46e88-33e8e2b7ddfmr2231455eec.38.1790158648295; Wed, 23 Sep 2026 03:17:28 -0700 (PDT) Received: from [10.218.7.34] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33e939fdd91sm5885830eec.4.2026.09.23.03.17.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2026 03:17:27 -0700 (PDT) Message-ID: Date: Wed, 23 Sep 2026 15:47:18 +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 v2 5/6] mfd: qcom-pm8008: Add support for PM8010 PMIC To: Lee Jones , Nihal Kumar Gupta , Konrad Dybcio Cc: Bryan O'Donoghue , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue , Vladimir Zapolskiy , Loic Poulain , Mauro Carvalho Chehab , Guru Das Srinagesh , Liam Girdwood , Mark Brown , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mfd@lists.linux.dev, Suresh Vankadara , Vikram Sharma , Dhruvin Rajpura References: <20260907-glymur_camss-v2-0-75f7982dc983@oss.qualcomm.com> <20260907-glymur_camss-v2-5-75f7982dc983@oss.qualcomm.com> <20260922093327.GA2308615@google.com> Content-Language: en-US From: Jishnu Prakash In-Reply-To: <20260922093327.GA2308615@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: v00udeFUVW-EMvzUM1jgHSEu8kvxoRRe X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIzMDAzOSBTYWx0ZWRfX87oyG/2YU8VC 0Xss7jzPZDRjF8yW4Mt5fyM3rEtqTYHNuOiA/txeq79rBv3DpjAVH+FWmfxEh2l0+Jo6qOkP0hJ 8jDkZMIzjUNUUubHU8q7zI2gBK8zgA8= X-Authority-Analysis: v=2.4 cv=Zsh4uN7G c=1 sm=1 tr=0 ts=6ab3a73a cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pTjQE-TItn96KZd9_6QA:9 a=QEXdDO2ut3YA:10 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-ORIG-GUID: v00udeFUVW-EMvzUM1jgHSEu8kvxoRRe X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIzMDAzOSBTYWx0ZWRfXyHy5aMBCOn7h e4jcg/ax6ElqDEU7FuURHzEisGrRHKEaMtFUh+4dZLEMqxkQXChPHFBSCTj2QXwobUcyoJlcArk /CrOiYiptVpJEGe7Ppd3tARJunG5UuAjtlDTaXOL1Cnx2TeHXTCTt+2b6dKzRpUtPiSwCnpF7vL SVx07puQHLS89wwuWZkWN2n3qmbd7zn/ml8L6rOJfQNIXQPYj4Ki+paU50VcIsFWSiVGIbmVIOy dwiR5X9eWsjI0MHKugF3d/0zViYOi3U5bYp0uvvNpk2IzDH6mjEH45pC1GqdQ2Lo4thDsfGSCkG V+244VeDg/jesWZuih6Iirom2gXKuW0Hyn27gnHpb9qJzHfxrPOmBCeZx/4xzOh/vhYHzAe+vTK LVe095GCp1BL0flXepTCNDAKq83rLWLwK/nXTHqhZRtUa056/CxprVnpG2nA7yZXMWViJdegmW2 sfM10x6H1lx+50SnuEA== 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-09-23_04,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 clxscore=1015 priorityscore=1501 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609230039 On 9/22/2026 3:03 PM, Lee Jones wrote: > On Mon, 07 Sep 2026, Nihal Kumar Gupta wrote: > >> From: Jishnu Prakash >> >> The PM8010 is a variant of the PM8008 PMIC with a slightly different >> IRQ layout and MFD cells. Introduce per-variant match data (IRQ chip >> descriptor and MFD cells) selected via the new "qcom,pm8010-i2c" >> compatible string, and support probing without an interrupt line by >> falling back to a reduced set of MFD cells when the client has no IRQ >> assigned. >> >> Signed-off-by: Jishnu Prakash >> Signed-off-by: Dhruvin Rajpura >> Signed-off-by: Konrad Dybcio >> Signed-off-by: Nihal Kumar Gupta > > Who are all of these people? > > Did they all work on this? If so, where are their Co-developed-bys? > Hi Lee, I had split out the PM8010 support into a separate series, which you have now commented on: https://lore.kernel.org/all/20260918-pm8010_i2c_support-v1-0-de33d78fad9d@oss.qualcomm.com/. I missed mentioning it earlier in the mail threads on this series, sorry about that. I have fixed up the attributions in that series. I have also noted your comments on this patch and I'll address them in the next version of the above series. >> --- >> drivers/mfd/qcom-pm8008.c | 140 ++++++++++++++++++++++++++++++++++++---------- >> 1 file changed, 112 insertions(+), 28 deletions(-) >> >> diff --git a/drivers/mfd/qcom-pm8008.c b/drivers/mfd/qcom-pm8008.c >> index 60204cc9a2dc60cc1fe1b64030f5d803100e7874..28532cef7908ef3409a3dfc0779aae3b1a3885b9 100644 >> --- a/drivers/mfd/qcom-pm8008.c >> +++ b/drivers/mfd/qcom-pm8008.c >> @@ -34,6 +34,7 @@ enum { >> PM8008_GPIO1, >> PM8008_GPIO2, >> PM8008_NUM_PERIPHS, >> + PM8010_NUM_PERIPHS = 2, .... >> >> static const struct mfd_cell pm8008_cells[] = { >> MFD_CELL_NAME("pm8008-regulator"), >> - MFD_CELL_RES("qpnp-temp-alarm", pm8008_temp_res), >> + MFD_CELL_RES("spmi-temp-alarm", pm8008_temp_res), > > Why is this cell being renamed from 'qpnp-temp-alarm' to 'spmi-temp-alarm'? > There is no mention of this change in the commit log, and if intentional, it > should be submitted in its own separate patch. This was incorrect, it is not done in the separate PM8010 series I have sent the most recently. > >> MFD_CELL_NAME("pm8008-gpio"), >> }; >> >> +static const struct mfd_cell pm8010_cells[] = { >> + MFD_CELL_NAME("pm8010-regulator"), >> + MFD_CELL_RES("spmi-temp-alarm", pm8008_temp_res), >> + MFD_CELL_NAME("pm8008-gpio"), >> +}; >> + ... >> >> +static const struct pm8008_match_data pm8008_data = { >> + .irq_chip_desc = &pm8008_irq_chip, >> + .mfd_cells = pm8008_cells, >> + .no_irq_mfd_cells = pm8008_no_irq_cells, >> + .num_mfd_cells = ARRAY_SIZE(pm8008_cells), >> + .no_irq_num_mfd_cells = ARRAY_SIZE(pm8008_no_irq_cells), >> +}; >> + >> +static const struct pm8008_match_data pm8010_data = { >> + .irq_chip_desc = &pm8010_irq_chip, >> + .mfd_cells = pm8010_cells, >> + .no_irq_mfd_cells = pm8010_no_irq_cells, >> + .num_mfd_cells = ARRAY_SIZE(pm8010_cells), >> + .no_irq_num_mfd_cells = ARRAY_SIZE(pm8010_no_irq_cells), >> +}; >> + >> static const struct of_device_id pm8008_match[] = { >> - { .compatible = "qcom,pm8008", }, >> + { .compatible = "qcom,pm8008", .data = &pm8008_data }, >> + { .compatible = "qcom,pm8010-i2c", .data = &pm8010_data }, > > We do not allow data from one registration mechanism (MFD) to be piped through > another (OF). Please pass through an enum identifier instead and select the > cells and IRQ chip in a 'switch()' statement? Also, why does this compatible > carry an '-i2c' suffix when the existing device is just "qcom,pm8008"? Yes, I'll use this method here in the next patch series. We use "qcom,pm8010-i2c" here instead of "qcom,pm8010" because "qcom,pm8010" is already used for PM8010 over SPMI in Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml. It is also mentioned in this patch in the latest series: https://lore.kernel.org/all/20260918-pm8010_i2c_support-v1-1-de33d78fad9d@oss.qualcomm.com/. Thanks, Jishnu > >> { }, >> }; >> MODULE_DEVICE_TABLE(of, pm8008_match); >> >> -- >> 2.34.1 >> >