Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1745986lqa; Mon, 29 Apr 2024 19:23:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDpXjPJOMQBj9LQtveVU1VeF9/IKcYMKfXfgK3PJjZiotiud7svR65drl4iWchzpSqZnylp80mGTeGheC5H9u3vzHsJ3EYcM0lhPSACQ== X-Google-Smtp-Source: AGHT+IHwlfFfwaniftoIT7WXuVta2mjiyKOVQjgs4CIuaZhNIqaqaorrfezQPSqEvnqWZj2VoEIG X-Received: by 2002:a05:620a:12f0:b0:78e:d2e7:3e9e with SMTP id f16-20020a05620a12f000b0078ed2e73e9emr1335906qkl.68.1714443817963; Mon, 29 Apr 2024 19:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714443817; cv=pass; d=google.com; s=arc-20160816; b=yt72/inKFoi6IGe9Rr3B062bxwx57cuopNk14d2Y/2BoqgpsvmtZIw/TA7Dd9glNgR 8rJNYHfHmGOMEvHhPVBPE+WDwQRRpPF62VMZVu8PXvLWbi2kPSlu31b5Sikch5xe1aKx P6hLoXLk6EUtBL7DSBOh+seezlmuzIVw14enFSWeO1Zhch+IWDSeGh9CE+JK+oIa74nX 3N8PDPak1VehxWUtuP9kyx9g2Rp7n3GGLvIatE5jn4wlgbmolYL79bJgLth3gNj8YNuT F/WpH9zYJx87e6EAl+NN5Tco4EoeMEudeb6LRaYdE8DeKhjGroGaloV0/y2Fs6DoylRO CV4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8t/mXbPLCf67SAZoEUDSVbA3GfmovWe1yCtq7ZTbGeQ=; fh=tARNNnuw9R+ng5G5MUaTuG1gQkH+rdqmo6IUR7ASvwY=; b=GtCxVB+ytaDZMiTQNt8B0ifhdLydrHmiqKv3ODscmmcX5oEYGnlWcT0xke8WuqGHdS QEf7fq7UYZg5VitVpGqOKpUW4NzkoW6BIVQawMaOyQMSlUB81PRi7riEI02pnHeTizQT 0YjFCpjCkkWb58DJslsa0cwAizHbl7/w35KaCdx1LEsnwBAMsUOp45UpXf9cEuwvE/7I Tc5V8GcoIuIfXNVBT/l+uFZ9J5iuBwl4ClVk44NrgpiAY7ixlJGBHnsUXhyCwb0xeNO8 +Y1Vg5YM9JGhx1ColISNMStC2JIrTLY1dJSoP8kHkdluTvbL9R4ZqkZYmPAozOJnvCJ+ ci9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Db6wleuT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163264-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 wv10-20020a05620a5a0a00b00790f7edf258si3082182qkn.272.2024.04.29.19.23.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 19:23:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163264-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=Db6wleuT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-163264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163264-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 AF1671C2208A for ; Tue, 30 Apr 2024 02:23:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CC92FCA6B; Tue, 30 Apr 2024 02:23:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Db6wleuT" 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 021C7101C4; Tue, 30 Apr 2024 02:23:17 +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=1714443798; cv=none; b=lexcE6nvf5OrlaIxhQGYSsT8T4xcsN0Rqw7YGp/mXmJE1YGqOgrOApdKKi17LSTMaq/V34gE24/5+FbR6IBaYGXQFhlQ4EMu3rbo7NGXxusLGKoSqBxJfeRA8jCcrpp4oc7yO+Ju/81q0MVvMBaqMrFlPK5F29+OlXL8m9v7IbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714443798; c=relaxed/simple; bh=8t/mXbPLCf67SAZoEUDSVbA3GfmovWe1yCtq7ZTbGeQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U4E4mjb8kWquTE1gWt0lR3BRpu49F5Utqlu/VDUEi9zy+TYgNxLZfMPREpL4iuFAyKq/rOTF+4wlUIWnTI7kBSQx1J5NyAj5ZsVka1bivMVLq6KjgYjk9Lw53EpDPpaGGa6C1Qh06VXn8dUQewRBOCcYcdj/SmhF7Ht0GZsEryM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Db6wleuT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85C20C4AF19; Tue, 30 Apr 2024 02:23:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714443797; bh=8t/mXbPLCf67SAZoEUDSVbA3GfmovWe1yCtq7ZTbGeQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Db6wleuTNzj/3dFgaoOOtW1lZiwGvNthzDetQg0d6ao7cTqF1fL7r1ijETPGxf25U ccFLpO3r0cmBSmwK1TOlRWt7KyQ/I2S7GY+m5M7VgoNLJfbdeM7ENfVIzVovxBuFOp Pznrrq+AwPkIM0veg9gBGR7m96IK87AtM8rJ73kCNfj+raf/IWqjKeT5aEqrQ+Gafu HSZLdjdMWx3QfC+fWBjCb/lVqYEPapgvstXIwizO912XviQ2aqrhBWsBTtSdBmCpef 5r3FbW6nneZeOE64J6DSK/piPkr2clNEzZeNHHDW5KiHDUJFbOGXxCMQHt2elm5fkO Q0rdnG8Li+CXg== Date: Tue, 30 Apr 2024 11:23:15 +0900 From: Mark Brown To: Kory Maincent Cc: Oleksij Rempel , Kyle Swenson , Liam Girdwood , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni Subject: Re: PoE complex usage of regulator API Message-ID: References: <20240426124253.56fd0933@kmaincent-XPS-13-7390> <20240429192848.13c576b7@kmaincent-XPS-13-7390> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oQZad9ye1MEygLXs" Content-Disposition: inline In-Reply-To: <20240429192848.13c576b7@kmaincent-XPS-13-7390> X-Cookie: lisp, v.: --oQZad9ye1MEygLXs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 29, 2024 at 07:28:48PM +0200, Kory Maincent wrote: > Mark Brown wrote: > > On Fri, Apr 26, 2024 at 12:42:53PM +0200, Kory Maincent wrote: > That's right I was focusing on power where I could use already implemented > voltage and current callbacks. Would you be interested to a new get_current() > callback to know the current and allows regulator to deduce the consumed power > or should it be specific to PSE subsystem. That feels like it belongs in hwmon or possibly power rather than in the regulator API but it does feel like it's generally useful rather than PSE specific. --oQZad9ye1MEygLXs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYwVhIACgkQJNaLcl1U h9BPOwf+P8SpKQiGARD/BM5DUus7+SoDOth5tMscCMNgchxFllbLym+WU8LY1Hlt 5pRI+m+2R7A1F9j6bz75cfAp0Aq0c1RQBKgw7OHRWeb4QyRbJQ3vB0qsSuVYaYy2 kQ2V/FItYBQZ1qxNKpN321csQKHZnzEL/ipSqv6WG3cVXHMfpYoCloP8DVK0jx1O VuLWUCYRUwfglqML55VAUYDF4gDXm1Lll9TFIt9EG//ZfSInz1O+PxL8TWbAgo8u d29yZ+Wl0piZ1b4xfAvfrMUUVRUm12TaY50zLVlh3Q5gVMc7YENr2xNhz9c0d7kY 07F2O34yCweJd5m9VfYRCaf6zmyXcg== =oL0P -----END PGP SIGNATURE----- --oQZad9ye1MEygLXs--