Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp386541rdb; Mon, 22 Jan 2024 07:17:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFreUMQoc1XJzr4ZGx9+Zm79RcQ/VqDLNrehxVOoY993SarUdA29KICFjbd0w82tu4WMapA X-Received: by 2002:a6b:4f14:0:b0:7bf:4900:ac46 with SMTP id d20-20020a6b4f14000000b007bf4900ac46mr5251391iob.17.1705936619897; Mon, 22 Jan 2024 07:16:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705936619; cv=pass; d=google.com; s=arc-20160816; b=igyPfq95ffBZckw9/KpJedf2D02cEr5meW+6LpUZVMrt/RV2gmcfti308iQeEhbuoh MkcBYvF5/UYHbrBG9/aizTzKoernZJfGuhgNpu/fQTJSTNNMsMlBuaXxI4nROROZ9DKM Bk5nPMARZxxCVGT4k3CXjb21ZKRSMS96QKJwbcrlAT/RuclMFgKOwc3ccI8XTZErCJt5 s2SpmwUPgZZXZjeOwhopb9Z15RCV89h///Vg9WOHziym1M4wifwnTo7JrVDBMzW7r3FR N1CWpqBHDapwUf+C3VTo0hqePF2GkVOYEuGB2JGPx4zZER/GKjZbDP2ecx33Qwc6Yi1x nu0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :sender:dkim-signature; bh=KmZWPYJBSOkWieoqR8/ANidiao8Ik7FDtETaXiuMJHY=; fh=DWMahNl1CUIeKydcAqmN8ejimxRTepv51KsUYK/XWdo=; b=ZjRpBfXb6Ta7bAiLP6p3ltjaFw08w3tLDPk7+b9LQ4jGaSAlBRsL59faSoh/c7jvbI fzAqMTBs9NnqmRHS+L/brACBe4EIENf+kou4LrXYGxHpnCTDff37Afn42C5olMqCJq4L sY4ogJStRDOsNltqJYCWBtMSDoUyHx6FC2wb5RZ0JY+Jc40stlk5QybAPc3gCejpjDia SD1PuZw+RTA+F5caID6yRBvrVa4PHCra9VwauoABSem0SbQk7i+96ANaNI1xIUfHJF66 JwlvpAUOldSCTeiv/LquGQ1s7wbQVc0YSGQe07eHasglF8KS2B9mT6eIs/KiDo7JMXUE 4s3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WlN4ARmw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33237-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t8-20020a63dd08000000b005c65eb2bc63si8142141pgg.608.2024.01.22.07.16.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 07:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WlN4ARmw; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-33237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33237-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B92A028C673 for ; Mon, 22 Jan 2024 15:09:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76DFE4CDE3; Mon, 22 Jan 2024 14:57:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WlN4ARmw" Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18CBC4CB52; Mon, 22 Jan 2024 14:57:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935457; cv=none; b=lkHedZo21EuzqWMgu3bhwq4LSry0lIMxB2w0erVmeVjb4LRQ4kobwWPmGxxUsAegzr3npfg1CK2JaeZW6cCMaQ8f1usCU0ZVVh6HYsut78eFULKc+EyxrUuXjNYuZkFgULjIm/0LYLqo/Y5d7JMegrraK/cEBjWzOYnPpnP0PF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705935457; c=relaxed/simple; bh=spHEdjlAJz6awq3PIydFaK3ccnZgwJ1aPu6BJP9NIPo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rHNm8nkbs2DpagxbL/jHaPXXhMv31ZE0/X2DjEbHXcDOeeSeyvvug5VD0vTKT4z0F1n+NjllkxzrntCoJEsE+YdnXvNwxR94lzXXvZ6D8SkZZ9nXGiQiGLL8mCPS18Yxsg/m+zf/dgiorG02tlveVrUYZavdm/KP4Dl/C5jSxiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WlN4ARmw; arc=none smtp.client-ip=209.85.215.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=roeck-us.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso2400433a12.3; Mon, 22 Jan 2024 06:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705935455; x=1706540255; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=KmZWPYJBSOkWieoqR8/ANidiao8Ik7FDtETaXiuMJHY=; b=WlN4ARmw4x9a0w55nuZU8lcIfSSq+PTxSqvRQOuicO7dCvuiAcwrCiGbHo95zzjYaS VLRUk2n3AFEqQWcKtIysWfux4e+uExEcY2o1keoW9Zlrg+9gSiD9B3UmtJnH4bu8z/pd NnbJncRxqz6nHWw9kCbIS7qwfs5Q0qJK3zK0+YCEgMoOE1V1cto0FA4lbctWXBBx7Z/5 +RyivQwckmkHdOcDOazrojxEugUeN+zHfZ6nJtnsfaXApbQGwkkNmk4by7eb9oanQTRL /ldLRUb/vCYYv8OCtyqeBS2h/PGYv7r1KllGc7f/2Hb7N9sIACssTlw6ggCO1WOMFxfF TxUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705935455; x=1706540255; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KmZWPYJBSOkWieoqR8/ANidiao8Ik7FDtETaXiuMJHY=; b=diN/YKcNpQqXlzRikItTjFzAvDo7tIYoHH9PFO8tIWYjwgHIBy87TZNHs4bYTJSqzC +0esL6F+vHt5aGSf6y5f3v+wPVWwCkYarpqhGr4zEQl9nxj0gdrPgeaphfm3E2Vn+zzX 4AZLW4sDHZL7EWEqBLP2SBt5E3ipAxLx4lenzn5LiuKZcHaCCgR4ZUVBBGtDPyihebkU 8+a/zUYKWXOoQfrc6dNoObfyf9pTlHMeZpmRlrak49KPUY62tgrNJ+LOjtePeLDsAFKN Gqqc7E8uzKGTfvIWjn1rwekX7fx2HqCchrgJ5jsXxWPrILRae38EQJD358tXLMu8p2wd 6Iqw== X-Gm-Message-State: AOJu0Yw3b78nXf1aORQ30hPpItklRi6NhdsPpV4jpmXwzL3yPBPnmOlL e3S6sG02oNmqfITVNVTCsqepH9V2pkjfIJChvszW/UdZK5s7u+PRVNxoRFbA X-Received: by 2002:a17:90b:3782:b0:28f:f2b3:67a9 with SMTP id mz2-20020a17090b378200b0028ff2b367a9mr1825694pjb.77.1705935455266; Mon, 22 Jan 2024 06:57:35 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id sn8-20020a17090b2e8800b0028afdb88d08sm9732358pjb.23.2024.01.22.06.57.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jan 2024 06:57:34 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Mon, 22 Jan 2024 06:57:32 -0800 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 v4 0/2] adding support for Microchip PAC193X Power Monitor Content-Language: en-US To: marius.cristea@microchip.com, jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, jdelvare@suse.com, linux-hwmon@vger.kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240122084712.11507-1-marius.cristea@microchip.com> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ3MwXlrEFPXaYJgibcg6brM6wGfX/LBvc/haWw4yO24lT5eitm4UBdIy9pKkKmHHh7s jfZJkB5fWKVdoCv/omy6UyH6ykLOPFugl+hVL2Prf8xrXuZe1CMS7ID9Lc8FaL1ROIN/W8Vk BIsJMaWOhks//7d92Uf3EArDlDShwR2+D+AMon8NULuLBHiEUQARAQABzTJHdWVudGVyIFJv ZWNrIChMaW51eCBhY2NvdW50KSA8bGludXhAcm9lY2stdXMubmV0PsLBgQQTAQIAKwIbAwYL CQgHAwIGFQgCCQoLBBYCAwECHgECF4ACGQEFAlVcphcFCRmg06EACgkQyx8mb86fmYFg0RAA nzXJzuPkLJaOmSIzPAqqnutACchT/meCOgMEpS5oLf6xn5ySZkl23OxuhpMZTVX+49c9pvBx hpvl5bCWFu5qC1jC2eWRYU+aZZE4sxMaAGeWenQJsiG9lP8wkfCJP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Yh2tnRaRL14YMW1dlI3HfeB2gj7Yc8XdHh9vkpPyuT nY/ZsFbnvBtiw7GchKKri2gDhRb2QNNDyBnQn5mRFw7CyuFclAksOdV/sdpQnYlYcRQWOUGY HhQ5eqTRZjm9z+qQe/T0HQpmiPTqQcIaG/edgKVTUjITfA7AJMKLQHgp04Vylb+G6jocnQQX JqvvP09whbqrABEBAAHCwWUEGAECAA8CGwwFAlVcpi8FCRmg08MACgkQyx8mb86fmYHNRQ/+ J0OZsBYP4leJvQF8lx9zif+v4ZY/6C9tTcUv/KNAE5leyrD4IKbnV4PnbrVhjq861it/zRQW cFpWQszZyWRwNPWUUz7ejmm9lAwPbr8xWT4qMSA43VKQ7ZCeTQJ4TC8kjqtcbw41SjkjrcTG wF52zFO4bOWyovVAPncvV9eGA/vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20240122084712.11507-1-marius.cristea@microchip.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. Guenter