From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796510381; b=UOO7q5KMEOMywN7H9nH6TDjrx9GL3Whry2LPt90wGOo6AewtEB/oa23RUOUXQtzjeJ8R qY72vvGMV8ppotvcPc0jMEFX8b6MS8BpK5aD2heDHdbXcobU9lUc0jjF0KnzpxLOMmnIO ntw/BmbamT/dNQsFVX3LuyANDzXUqd+YjWm7hBbyBr6KnjWIdm1YF8Y5rSPl7OfbM1eeR WMKWLMIVk8FoLTa45EirVqVWcGggLcOCnO2Uu762zC1Z6S78h1cgVi+KZk4MzX8t35L/n 9EBw7Mxl5WPBh9PDoz0HZDp8cOgqfNTTDKaTpK8W9IVrCbDF2I98gWk3NTpaAbpLk5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796510381; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=uKKHT2fC8m360lBLf/EagPxi97KmFcKdxjbacSTUYqI=; b=mK0lYivl3L4YPEXVFwB3wchboo6//24EXpAGzEz87YR4pW4/Oq+aOy3CSeEfm5BLqmo5 mivgKc2N+3jBhkE/H3Jdb/yqbLSa8jecb7glYhBBevNLDKRzQjmJaZpRD+kdFMRyaA7f1 X0ZzSiJxNTRyATSsp4EqEwSJeIgQSfXwpz1LTlCjW8RbwrqmLG/ShEdQfWJ5PYDNNWgkk p3m4iCnahtRr1CYwG6BX77joQOH+J9srUnoAXTtLlDNbGjg+pYCp6VXWTS0C2+laSfsuG 0S3zP7bVjToecgrMaaRnozBLc+B0jPjinwTKImdbw93j4B8hHDEqP5rsCvnohexD10A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VMjJIEA4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35DC7606A31F; Sat, 5 Dec 2026 22:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=VMjJIEA4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB70E1F00936; Sat, 5 Dec 2026 22:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796510380; bh=uKKHT2fC8m360lBLf/EagPxi97KmFcKdxjbacSTUYqI=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=VMjJIEA4WnYxKwZHnlZWoDhVPLK/+Npoh9GeI9J4X2eeM9d8x0SuzSgLm1YsCYyLc 05y10dhf0oIYiVQvnoGIwNGahDXNVGBwppiL4AXTBgV2V4l6UwZRwbMpds7ODjvFl4 7UgEPkgSqSxARU8sJuJDytzvwSfqc5uTr3HmTyLyJrepyaec/j2RH85x0qXZvWGhMS WkNFTKC+FPT7x+t9LH4hMEfkXNXySCk/ejMp0KJMoftu2q2k8IkXG7bwjaAbc2JpK6 RREOYlpliF6mcJFN5qzJgPhfzndrJqbqkbsFHlLt/IZBbktAcl+m8pvp3KSXXuIvpQ FPnCNQ8d+ec3w== Date: Sat, 5 Dec 2026 22:39:33 +0000 From: Jonathan Cameron To: Neil Armstrong Cc: David Lechner , Nuno =?UTF-8?B?U8Oh?= , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Hennerich , Jonathan Corbet , Shuah Khan , Randy Dunlap , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux@analog.com, linux-doc@vger.kernel.org Subject: Re: [PATCH v8 4/5] iio: adc: add driver for the MAX34417 Four-Channel High Dynamic Range Power Accumulator Message-ID: <20261205223933.46244a98@jic23-hlaptop> In-Reply-To: <20261130-topic-sm8x50-iio-max34417-adc-v8-4-6efef2782816@linaro.org> References: <20261130-topic-sm8x50-iio-max34417-adc-v8-0-6efef2782816@linaro.org> <20261130-topic-sm8x50-iio-max34417-adc-v8-4-6efef2782816@linaro.org> X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 30 Nov 2026 17:30:38 +0100 Neil Armstrong wrote: > The MAX34417 is a specialized current and voltage monitor used to > determine power consumption of portable systems. The driver support > getting the channels voltage, average power, accumulated average > power and energy over an I2C/SMBUS serial interface. > > The MAX34417 datasheet only specified on how to calculate the > accumulated average power, but with the Sample Per Second rate > we can easily get accumulated Energy in Joules. > > By default the IIO driver only supports single-shot Voltage > and Power sensing, but the accumulation can be enabled by > enabling the Energy IIO channel which then enables the > Continuous Accumulation Mode. > > The counter is common to all channels, so when reading a single > channel we will copy all accumulators to registers, so in order > to permit reading individual channels we must accumulate the > other channels in the driver when Continuous Accumulation Mode > is enabled. > > Signed-off-by: Neil Armstrong There are a couple of things from sashiko. https://sashiko.dev/#/patchset/20261130-topic-sm8x50-iio-max34417-adc-v8-0-6efef2782816%40linaro.org However, given they seem fairly minor and if necessary can be follow up patches, I'm not going to ask for a v9 just for those Thanks, Jonathan