Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1003893rdh; Fri, 27 Oct 2023 01:42:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfIeJJegnbAHKpFHYGRCJvX719eNkImoh4X/FqLF6FrsUoK1d4Lobl2YJrwJHRBJvP5QJw X-Received: by 2002:a05:6902:544:b0:d9a:d20d:7d5a with SMTP id z4-20020a056902054400b00d9ad20d7d5amr1806033ybs.1.1698396126813; Fri, 27 Oct 2023 01:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698396126; cv=none; d=google.com; s=arc-20160816; b=xTDN0UI5cAXJe0H6DUPSm/EiVWsPV9C18NshJBiQ4IsSdULfL/umreWIcb0Okg0Asr WpTXTkAMV4LPX1davnkJ7jss7HQXsQSTOxjKQKsFvuBe6XSLHOVbjaJ9g6d/ZILsoFgF 4q8ihw1wqFgimDo3SghS9G1MvphPFQeAFhcTc6ENaFG05+GHQ7eIx5wunjRIckXyaQsS 2F5Lb+czE3QmdsslFROjx2JOsG8k3hLOMEJeQhQjY31PLN717Hk2mEluWu4Mk//r0aI9 28nCF+D37srQ77sJG8MsSd48BWW1rXQoyI0mDpTebkKeEyC1IzcPeRKhQdA4mBzxy741 ROnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=+ZNnHFWiSKIHBdwdRjz0nWKM4UEVROjCQQBMy6BxpmY=; fh=D42njyk26e8QemRo3ucEkEF1xMohkygtMCuDJbZSvKU=; b=cIF52LotArrSLUSnSEm0iW7LveuFi0g96HaTttVQ3wUsEGZhrBmYuuNApUuB7YMGGt E70cJcOtQin4VrMo0YJ4pijdlUHhVYJ3tJoeC8MAWRfCVWDo1TnuGKQD7tgNOgXFlJyV UgHmAQlgBT3w0P+g8QwWkKLS6fWEJQQEpAUbsJRT4o8ywsjo4uIGro89Jj8J0ZOK/T1I XVca00j561CIy2X3lm0U6oNZeuvCLhqSub5WeKrYa6tpdK36DH1Ou94zJehElMZIAEce TW8fcRZ5X8rkcZYYj66JLR7yDPmq5EzI79o7rY5Hw2jlieF/2qaN/cgIoHO0v5rgkByF Nsjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eTTPYQH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d10-20020a25824a000000b00d9a49bb3ce2si1824410ybn.272.2023.10.27.01.42.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:42:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eTTPYQH5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D51D8826FA9D; Fri, 27 Oct 2023 01:41:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345592AbjJ0Il0 (ORCPT + 99 others); Fri, 27 Oct 2023 04:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345597AbjJ0Ikz (ORCPT ); Fri, 27 Oct 2023 04:40:55 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 404B41B6; Fri, 27 Oct 2023 01:40:25 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5406c099cebso2690903a12.2; Fri, 27 Oct 2023 01:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698396023; x=1699000823; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=+ZNnHFWiSKIHBdwdRjz0nWKM4UEVROjCQQBMy6BxpmY=; b=eTTPYQH58gNX8SCfiwfANdeNDP5A9VgZrY+KjaPB3BDPjTT7+AE0vu3AZogPCpkPCf BAc3mEsVxexcB5TV1edobIeS6n1r3QYNmdWbO6oIAeSIAIAYkRlevTT1s+JQonb9KB+2 yxS2EZTkeLSsJYP/YmZJFHPS0xR5VcCxRwwjAhdLsvA2mWm6mB392fdtX7R67dvcAJ6F zADUBW54PENyWSF/Iw0rW1sPUMH5HWSXauHA36DtZpllSEYmaLWVzJah5BH0na2xJLUI WrdjskFfZoIX7DLhk840k59JPhbevum9OKBjTwH2SdNARpW1Zzo+AKw6cMgKr1KuFRpT +Ncw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698396023; x=1699000823; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+ZNnHFWiSKIHBdwdRjz0nWKM4UEVROjCQQBMy6BxpmY=; b=kINk2by5TQadIiU5eZLihroDFLQPy8Lp1eUSa2QRkhqF2oJPgdntkmfwHyTVVHCuL5 h6Z0Pb+CtHlpuH5V0E4lA2HnLU2l3X76Xo8tPRflbUY9ip2F61aCHmDurhggTQ+M8Uzp 3F/lVfP4ZByal1NZ1BgJzKQzIZUZmI+HKTYwHzaGxzBazIiJUBFBLUuUHA1aG7E91LlB 0U/B17Ht+Zmx0rKgo+cw+v5yiOnQx8FhPuY40oGPuB9Xw9aGTvrU8bhWP10xoc9qhYwo 6sEQaHNkfpZdjRSuBJObeASY8M/6jMB3KESXApJBAVygRSRw/0kCAMwiE5gkpGpsNsMR VsHQ== X-Gm-Message-State: AOJu0YyNp9BCfmNCm4nBYlBpv6nCD4COo7VU8PAC3rXVY6aud14p0qCP CpplpUAJ0E6z98fuyf3/PVE= X-Received: by 2002:aa7:d78a:0:b0:53d:d4a0:3154 with SMTP id s10-20020aa7d78a000000b0053dd4a03154mr1674010edq.31.1698396023205; Fri, 27 Oct 2023 01:40:23 -0700 (PDT) Received: from ?IPv6:2001:a61:3456:4e01:6ae:b55a:bd1d:57fc? ([2001:a61:3456:4e01:6ae:b55a:bd1d:57fc]) by smtp.gmail.com with ESMTPSA id j4-20020a50ed04000000b0053ebafe7a60sm871060eds.59.2023.10.27.01.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:40:22 -0700 (PDT) Message-ID: Subject: Re: [PATCH v2 2/2] iio: adc: adding support for pac193x From: Nuno =?ISO-8859-1?Q?S=E1?= To: Marius.Cristea@microchip.com, jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org Cc: conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 27 Oct 2023 10:40:21 +0200 In-Reply-To: <02ea54ae3a2ab4f0a19232a4df494f71b1de3b00.camel@microchip.com> References: <20231025134404.131485-1-marius.cristea@microchip.com> <20231025134404.131485-3-marius.cristea@microchip.com> <02ea54ae3a2ab4f0a19232a4df494f71b1de3b00.camel@microchip.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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]); Fri, 27 Oct 2023 01:41:56 -0700 (PDT) On Thu, 2023-10-26 at 15:03 +0000, Marius.Cristea@microchip.com wrote: > Hi Nuno S=C3=A1, >=20 > =C2=A0 Thanks for looking over the patch. >=20 > On Wed, 2023-10-25 at 16:38 +0200, Nuno S=C3=A1 wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you > > know the content is safe > >=20 > > On Wed, 2023-10-25 at 16:44 +0300, > > marius.cristea@microchip.com=C2=A0wrote: > > > From: Marius Cristea > > >=20 > > > This is the iio driver for Microchip > > > PAC193X series of Power Monitor with Accumulator chip family. > > >=20 > > > Signed-off-by: Marius Cristea > > > --- > >=20 > > Hi Marius, > >=20 > > I'll be honest and I just looked at this for 5min. But I'm seeing > > things like > > shunt resistors, vsense, power, energy... This seems to me that it > > belong to > > drivers/hwmon. Any special reason for IIO? > >=20 >=20 > =C2=A0 Yes, this device is at the boundary between IIO and HWMON if you a= re > looking just at the "shunt resistors, vsense, power, energy". The > device also has ADC internaly that can measure voltages (up to 4 > channels) and also currents (up to 4 channels). Current is measured as > voltage across the shunt_resistor. >=20 I think this alone is not justification but... > =C2=A0 As I said before: I was thinking to start with a simple driver (th= is > one that is more apropiate to be a HWMON) and add more functionality > later (like data buffering that is quite important for example if > someone wants to profile power consumtion of the procesor itself, or a > pheriperic, or a battery, this kind of functionality was requested by > our customers). >=20 having buffering support already makes a case for IIO, yes. Hmm, I'm also just realizing this is v2 and indeed you already justified th= e very same question in v1. Sorry for noise! - Nuno S=C3=A1 >=20