Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2053569rdh; Sat, 25 Nov 2023 11:36:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWxw8G/1QCk2PX4s+UA8ynOcn5c3Pdwq/PXcjf0TDUPlM0u67GINiyLN+4TTEc/beqSq+H X-Received: by 2002:a05:6a00:2d94:b0:6c4:d615:2169 with SMTP id fb20-20020a056a002d9400b006c4d6152169mr17272379pfb.10.1700941013723; Sat, 25 Nov 2023 11:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700941013; cv=none; d=google.com; s=arc-20160816; b=FEHnHGk4gvd75u9N/swBumX/HXauWql00cKyL4q4Ft3OEIh4emhd1f/4jUmXWBa/h/ IzonJk0cZOkS16n2iZVaDkN+ZmE58y0GvdXG2RhvEQxfyqudSb7L4+sqRBnd6DVUILH+ My2i6RtuM3ANsKx3+okt5a9b6tCVj3MI6MU+SHrtqg5bQC9MBAYCYkPJA5wV6TD3aycH HqGVA8/oy1eLRcMequTHtL4fllq47A5AUwkI3Oo60J2bclbTFzYtnTxda3/hsKXA08ZX 0OLash2DdwiAXiX86fnGdwqDbR1yigZmNEcyJZzqswnWuL1GqwHzhdxLB9oqRE/Dt+Mn ANRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=AgmmmkuWvkLv1iaRmhX0nuvvwBgf7SfgEYv+jnUcCMA=; fh=M/Wzo/9LKNthmDT8vJ50TGl04Xudq32yU8HZte6qGko=; b=gR48nlmL+9LOJAm4ngW/kuRgY1rPt7M+FgJbTgZ/iLjbooJbleqpgfEoBZ97mH2K/9 7pBMtvsz34S8f61GNeXOrD5g8K/a5EQTTpoPBr0zlaxpYHqQbsqHRu3vxtPram5WYoS6 eJwXkJVmkq6xslkCc3J+UQnmM0iT9rMGR8iJRT6ktyQIphvfiK9YRqHCQwuvCm+WlCaK +irXkT3V5hKuRPqykj48NcD+ytwDh5xv+tPEat4lLsKROhwTFeUfmPS9Mr2zofOA7VJT lwZoMjvJ+jlFgFuL1Q3s3DRcYQQo3FuOjYDhzEqPovxGrll0ku4qcTNLmg+7oxodis28 fqWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcsR35Lu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s20-20020a656914000000b005b935872b48si6153794pgq.537.2023.11.25.11.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rcsR35Lu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 98614807C579; Sat, 25 Nov 2023 11:36:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbjKYTfv (ORCPT + 99 others); Sat, 25 Nov 2023 14:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232277AbjKYTfs (ORCPT ); Sat, 25 Nov 2023 14:35:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DF99133; Sat, 25 Nov 2023 11:35:54 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E127C433C8; Sat, 25 Nov 2023 19:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700940954; bh=CgC7BlUksevrTrZ5FGtBlt6wUUXeX3J6IePILPKYWNw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rcsR35Lu1pBy/9WWNl9lbohy/2mJGh57DjWsiC5HLUmsLHdknyHAW5plcnS3iEwB+ 5CyTssgHMqnLeRDL6LU2kuij4sZUNyKEv8i5LQIAN+J8qHLtvradquAiZoFWpA3nYk hQJ1EMdDiZORZrOlnmqTVRbl1is7u9R0EJiLcVCpC6LDSxe9vPpWypKg9Kwstys5Bi olA/b1WLOZOIhkKM5VI264GQeo29ig54iY9OUalzN8Ts8LEJ4wJcG+o4URG8b84ixQ W2d5Y0CDRBz0ycpIpUo37+7prxY2Br7H580RFtoJt+XpgG6dA51PoYbAQwzUsPMicC ynlc4RdCEhZsQ== Date: Sat, 25 Nov 2023 19:35:37 +0000 From: Jonathan Cameron To: Dmitry Baryshkov Cc: Jishnu Prakash , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, daniel.lezcano@linaro.org, linus.walleij@linaro.org, linux-arm-msm@vger.kernel.org, andriy.shevchenko@linux.intel.com, quic_subbaram@quicinc.com, quic_collinsd@quicinc.com, quic_amelende@quicinc.com, quic_kamalw@quicinc.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, marijn.suijten@somainline.org, lars@metafoo.de, luca@z3ntu.xyz, linux-iio@vger.kernel.org, lee@kernel.org, rafael@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, cros-qcom-dts-watchers@chromium.org, sboyd@kernel.org, linux-pm@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org, kernel@quicinc.com Subject: Re: [PATCH V2 0/3] iio: adc: Add support for QCOM SPMI PMIC5 Gen3 ADC Message-ID: <20231125193537.631b098c@jic23-huawei> In-Reply-To: References: <20231116032530.753192-1-quic_jprakash@quicinc.com> <5a476b51-5916-74f8-0395-60d94f210aa0@quicinc.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sat, 25 Nov 2023 11:36:09 -0800 (PST) On Thu, 16 Nov 2023 08:58:03 +0200 Dmitry Baryshkov wrote: > On Thu, 16 Nov 2023 at 08:30, Jishnu Prakash wrote: > > > > Hi Dmitry, > > > > On 11/16/2023 10:52 AM, Dmitry Baryshkov wrote: > > > On Thu, 16 Nov 2023 at 05:26, Jishnu Prakash wrote: > > >> PMIC5 Gen3 has a similar ADC architecture to that on PMIC5 Gen2, > > >> with all SW communication to ADC going through PMK8550 which > > >> communicates with other PMICs through PBS. The major difference is > > >> that the register interface used here is that of an SDAM present on > > >> PMK8550, rather than a dedicated ADC peripheral. There may be more than one > > >> SDAM used for ADC5 Gen3. Each ADC SDAM has eight channels, each of which may > > >> be used for either immediate reads (same functionality as previous PMIC5 and > > >> PMIC5 Gen2 ADC peripherals) or recurring measurements (same as PMIC5 and PMIC5 > > >> Gen2 ADC_TM functionality). In this case, we have VADC and ADC_TM functionality > > >> combined into the same driver. > > >> > > >> Patches 1 adds bindings for ADC5 Gen3 peripheral. > > >> > > >> Patches 2 adds driver support for ADC5 Gen3. > > > For some reason I don't see this patch in my inbox. Maybe it will > > > arrive later. Immediate response: please add > > > devm_thermal_add_hwmon_sysfs(). > > > > > > Yes, I'll check and add this in the next patch series, I'll wait for > > some more comments on the existing patches for now. > > > > I ran into some error after sending the first two mails (cover letter > > and patch 1), so I sent patches 2 and 3 separately after it, I think you > > may have received them separately. > > > > > > > > > >> Patch 3 is a cleanup, to move the QCOM ADC dt-bindings files from > > >> dt-bindings/iio to dt-bindings/iio/adc folder, as they are > > >> specifically for ADC devices. It also fixes all compilation errors > > >> with this change in driver and devicetree files and similar errors > > >> in documentation for dtbinding check. > > > NAK. The kernel is expected to build and work after each commit. > > > Otherwise git-bisecting the kernel becomes impossible. > > > So, please rework your series in a way that there are no compilation > > > errors after any of the patches. The easiest way would be to rearrange > > > your patches in 3-1-2 order. > > > > > > I think you may have misunderstood the meaning here, I had verified > > compilation works each time after applying each of the three patches in > > this series. It's not that this last patch fixes compilation errors > > caused by the first two, this is a completely separate patch which > > affects existing QCOM ADC code (driver and devicetree) including ADC5 Gen3. > > > > > > This patch does two things mainly: > > > > Move the ADC binding files from dt-bindings/iio folder to > > dt-bindings/iio/adc folder (this would naturally cause some errors in > > driver and devicetree code due to path update) > > > > Fix all compilation and dtbinding errors generated by the move > > > > > > I added this change at the end of the series as I was not completely > > sure if it could get picked, just wanted to make it easier to drop if > > that is the final decision. > > Ah, so patch 1 adds new files to , while > retaining old files in the old directory. I'd say, this is > counterintuitive. > Please reorder patches into 3-1-2 order. dt-binding changes anyway > should come first. Absolutely agree. Refactors, cleanup etc should precede the new stuff in a series. That way they can get picked up by anyone who wants to backport without having to first figure out if they want the new stuff. Jonathan > > > > > > > Thanks, > > > > Jishnu > > > > > > > > > > > > >> Changes since v1: > > >> - Dropped patches 1-5 for changing 'ADC7' peripheral name to 'ADC5 Gen2'. > > >> - Addressed reviewer comments for binding and driver patches for ADC5 Gen3. > > >> - Combined patches 8-11 into a single patch as requested by reviewers to make > > >> the change clearer and made all fixes required in same patch. > > >> > > >> .../iio/{ => adc}/qcom,spmi-adc7-pm8350b.h | 2 +- > > >> .../iio/{ => adc}/qcom,spmi-adc7-pmk8350.h | 2 +- > > >> .../iio/{ => adc}/qcom,spmi-adc7-pmr735a.h | 2 +- > > >> .../iio/{ => adc}/qcom,spmi-adc7-pmr735b.h | 0 > > >> .../iio/{ => adc}/qcom,spmi-vadc.h | 81 ++ > > >> 46 files changed, 1725 insertions(+), 61 deletions(-) > > >> create mode 100644 drivers/iio/adc/qcom-spmi-adc5-gen3.c > > >> create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550.h > > >> create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550b.h > > >> create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pm8550vx.h > > >> create mode 100644 include/dt-bindings/iio/adc/qcom,spmi-adc5-gen3-pmk8550.h > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pm8350.h (98%) > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pm8350b.h (99%) > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmk8350.h (97%) > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmr735a.h (95%) > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-adc7-pmr735b.h (100%) > > >> rename include/dt-bindings/iio/{ => adc}/qcom,spmi-vadc.h (77%) > > >> > > >> -- > > >> 2.25.1 > > >> > > > > > > -- > > > With best wishes > > > Dmitry > > >