Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp48337rdb; Mon, 22 Jan 2024 11:29:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZS7cyracrO+cchDtEtbilgqLopxpCi164LHopMG9KHJVeIeDmc1k+IRgqi27cCCZS8KtW X-Received: by 2002:a05:6214:ccc:b0:681:969a:2a79 with SMTP id 12-20020a0562140ccc00b00681969a2a79mr7773716qvx.78.1705951746214; Mon, 22 Jan 2024 11:29:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705951746; cv=pass; d=google.com; s=arc-20160816; b=uzZs2IH5SHGzsOGAtHLaG6uiB982AgpJ9VQbqky2na4eVU7uiDO7qhIJpwiKxE88qf +ARFH2rDqSj/kxLf2YePzUwSgwIs8tizf+FJ3c7qHmKQmK7gANG5NgJqORtPGY5CkEaa +fVOKBjve9WG8pZpBEQipaiOsP/bo3yALc0d37+g2xSIwTv3iCms5U3k1GwLyNIcsSKR JD68FWUdhGihVQ5s2tbZiCjDRZraAmO3KgVEFwMazmD5mc9Yb58agYqvnnvr2GeDxCsl Bbu1Y+Uizb4oAOZ/QjubbUMciPVH+35NRyziyB2HukWZgaSzTxxeyjGXJDpbEtkzke08 unAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=/cHm1HTFA/A/KHF6JA1o9nccw4o2z5txaG1bo67crAM=; fh=rUIXMUFLhAKiVIWMtswhdOt2UAIivG2QpBtSW6ps/gE=; b=tda1aMiG+SypAaeCU1U8bvTZN1bKZoSxkd2+NVwVQn2x0oGgp0v4lGKIxXumyXeB5+ pwNVYZOUbemqX3SFsbvd++6lSlK62MwxaVqt2yyz8C4AMJmoZiWdNKUzUOVFi4YeieqC L9bqOitcEK1dR4zGTeRAkNpK/GpLAR0/XbedcxXot/iGQs6Il3vzic10+0EXvuvFe/DZ D82zrIzsGVOAIu3w4qSuN1uGUh/j1iXZWe63ICq+Rujl3CVvwasnFXIQM4lDh5smMiOy dIInGUUBAQLLPL4c++654s2hbqFo4ejNkbRqFejKjunISu5mR42DDNfRYekXFmEa/NNR W5Qw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SBQE1dku; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34054-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h8-20020a0cf208000000b0067f668e360csi6266033qvk.401.2024.01.22.11.29.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:29:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SBQE1dku; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-34054-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34054-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E564C1C29CD6 for ; Mon, 22 Jan 2024 19:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C3A0F3F8EC; Mon, 22 Jan 2024 19:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SBQE1dku" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E259C3D553; Mon, 22 Jan 2024 19:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705951738; cv=none; b=MLImWd52MicpNQwFWkESXrSfe9K+3C2p4NU/YyiYnaXqMkyxl6qHEFspUoR1VNRTRF8ySOv2xXH+jN2DCevvxr6lOOomCuK7m3yvWFTzX25NVyPXDp8eaa5E3yvJWuko95XTlu+CARKnqDaEzmkAH92h3y/Uqv/Wr7YYlpZjFpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705951738; c=relaxed/simple; bh=afe/agwweDEq5hliJJTGqCqDN6ZjHnZaGXWvzUFYsU4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=sn9X3eswyKfIDJgVnkCGzcJxm5JojVD8XM/lKR0OvC62MvBgRf/Z8ybG2xJt2Sm0KAHrv4DPbF+TCzN0uhiok62X/vJtDh05BBvkVyNMJaX+LLqwBQOJPxT/rDvdexzbvB16xyzxB9wzRK3l5vYGU97AGOq23PLYrgI3EYZia88= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SBQE1dku; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB792C43394; Mon, 22 Jan 2024 19:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705951737; bh=afe/agwweDEq5hliJJTGqCqDN6ZjHnZaGXWvzUFYsU4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SBQE1dkuhEfL93TcJEEBBJ8/xouUb6xnNbHHPRX4FZpR4wORc6+Hxhwufl4uXyG9N ujO909y+zv4YV89rXPmNeoC4xFjVhav9s5WneBYLNaof0vne1fiYX0rITrjJtcl+JP ivaU+jwxkBOdBuHH5v3P3pgAd0Q1Yb+1KlSY8gqx2spd01xM1GJoQGQRwznIcfilWb Bbfrw18WipbGdoTzVwQnY/FPDTAlbxDof+tn7lG5ZOPODSUIwR/itpsqYMtvoJAEsF Yd3wHjPLZgE4QxkzF302iwZ5Ixk1ApA1Ep1c+EkNKGipVyFAR6Pnrm3vQR6kEgYIgq u0ykUxtrKq9wA== Date: Mon, 22 Jan 2024 19:28:44 +0000 From: Jonathan Cameron To: Guenter Roeck Cc: marius.cristea@microchip.com, lars@metafoo.de, robh+dt@kernel.org, jdelvare@suse.com, linux-hwmon@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/2] adding support for Microchip PAC193X Power Monitor Message-ID: <20240122192844.61b370ef@jic23-huawei> In-Reply-To: References: <20240122084712.11507-1-marius.cristea@microchip.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 22 Jan 2024 06:57:32 -0800 Guenter Roeck wrote: > On 1/22/24 00:47, marius.cristea@microchip.com wrote: > > From: Marius Cristea > > > > Adding support for Microchip PAC193X series of Power Monitor with > > Accumulator chip family. This driver covers the following part numbers: > > - PAC1931, PAC1932, PAC1933 and PAC1934 > > > > This device is at the boundary between IIO and HWMON (if you are > > looking just at the "shunt resistors, vsense, power, energy"). The > > device also has ADC internally that can measure voltages (up to 4 > > channels) and also currents (up to 4 channels). The current is measured as > > voltage across the shunt_resistor. > > > > I have started with a simple driver (this one that is more appropriate to be > > a HWMON) and willing to add more functionality later (like data buffering that > > Not sure I understand what you are trying to say here. This is obviously an iio > driver, not a hwmon driver. Any hwmon related concern is irrelevant. It's a left over comment / attempt to summarise the discussion of whether IIO or HWMON was a better home for a driver for this device. Based on current feature set that's not an obvious decision, but there are other planned features that fit better in IIO. > > Guenter >