Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1164279lqp; Fri, 22 Mar 2024 07:22:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEIllm2Ul25L76mMbMNrfkUNIBY0md+A6iQCsCMacwGotbq97KJXI6rHSM4Y0NZfvHk9wG6xXj1eTjsbZC1ujXIk2xPhrYxeFSwCYINA== X-Google-Smtp-Source: AGHT+IFLMsz/VxwW+BWnGskmPiuBqU2RTA28v3oc5vHKgYTDhP8ALWbDBRBTzDrgOck0JZC8auDl X-Received: by 2002:a17:907:9850:b0:a46:ec44:477c with SMTP id jj16-20020a170907985000b00a46ec44477cmr1786768ejc.41.1711117373979; Fri, 22 Mar 2024 07:22:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711117373; cv=pass; d=google.com; s=arc-20160816; b=CqQkQD+Bp8WQOo1zaTHj4gOynVgwQF2BdOGRd4eJlzXfY2oi8LPF6GWTaavUPuCUak pRm6yMtoEkOm6Omv025qh9R0bSV10kl7Zh0GogNxMjrVrrPcfV6FgUJr4AqdQTKYeuKj RlqcJyMStMnlbAeFBHrMTQG/qT7oJuCZhmOHfZ/riAHZai91qYs2DkN4cPSTgIC8s2hr I+FSCTphbYR9cETxJj9WjKyp5NTrDQH7jUOj5ufMUMEu3HXud6vhWdXvwhEaDTloW0Em UA0aGiRL6XVS7twvIwTlJyeRirE3WUBTUBqV1erwhIWIsCVUBy6poCbptotk1kpb/l1V pIqw== 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:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=SH1XRhULQIs8JPRuZsRMbAGpvto0OH+vLr70bNJGEho=; fh=5/fkld+zcf/XuSy0V3t++3lCdQF6MsgduU+DVU86hTU=; b=CltnrLtNzinlhJTPSA6k9sLbUUp7DIQgM95AELvDsaxc8x0Tu6FXShWgXcM5wtLGxm M+IfZ7vs4ChZJ1eHAcWlcccT5pRUhocMro08VL2cjbfyxQHRXO0KoebfRlixiiIDIgGz qnHJnzWN2fkBW+fY8xr8J3NOIgewp+pbNDwYctySZ6v7JsTF8H8IEO0/NNso82Vks6B+ ZlgC1Fg7ck7RE6s+DRE9EwM862W2BFwK/N3CK+ArzkC9MNSz8ZF7D9vzoFKEYepUEnfW SaKGWkSDW3OnAjiJ6AUjMeBdmz03CvH0jPqz3iV0Nwc+PuX1dJPitJlxYfEd21nlBGKX irOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YahQzIVQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-111601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m15-20020a1709066d0f00b00a46d5bb1e80si937753ejr.6.2024.03.22.07.22.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:22:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YahQzIVQ; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-111601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A16AF1F22399 for ; Fri, 22 Mar 2024 14:22:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 848FC47F42; Fri, 22 Mar 2024 14:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="YahQzIVQ" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (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 2E68B3EA69; Fri, 22 Mar 2024 14:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117360; cv=none; b=J9R+mNwep1S3rlYk04HWB4UqJ8Xci2CitcTz+Slj9zOGq+KMNBiweedDGuVx3NX2rOWQdzvDPiJ0WT3njprJu8oIEYN9e5BSp91TymmbtQmiTPdElOzOOSjcWdnUulJY81PFwqBivqdwZqd7Sosc32wa3hQk+2yI35YeIB7xKcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117360; c=relaxed/simple; bh=BR0WlKret8eILef1rpRsE7FbijXE68ZU4YU5Orzxgn4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HQJdsga4Zb/5E3+ZY9ch1XNSXLdyhoajkbwR4z7Nl2VKhWuvFtTC+wQZkJrcE88/xhuLGM8u0COkE2pUhN2gTu0R1mIl5jHtf38fbyI/21URXsyfwfolyINZJTfovGD5tyfAK4oiq4dI3lOYbyf6CnCLRVjIM2gpds5E4vDCZjM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=YahQzIVQ; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 2B31AE0004; Fri, 22 Mar 2024 14:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711117349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SH1XRhULQIs8JPRuZsRMbAGpvto0OH+vLr70bNJGEho=; b=YahQzIVQq0jJ1ScOJhQ/K+EwS4rg6H7JA024lGZUDBFPIlgbkqTCFwDO5ePCgG+fjLWptk Es6WkS2daYPgFJsTy9CiAkveBWPlcPHZApIlp6nlAepa1ykZHJWcsb6GE9jRaEMcj4A6bE 2xNxzOT6ZuruAE8/uWn/8MuIHYlhHUDq9gWgVKBZb2tjg9nJnULQdy/nJnGFz+ULMhcyiD C5wdMigkNMVqYqwwHGK6KUsrwnq6HtYYzLhIwt2HQw0xH+TbTmm+tZng3Q6FY6+TpHOLmt b+gsW6jyAQhDTC9Mi6bP4ureTAOgB3GiqQpiXRVNptdmT02lrzTQ1RlB/DoTuQ== Date: Fri, 22 Mar 2024 15:22:26 +0100 From: Kory Maincent To: Oleksij Rempel Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v5 13/17] net: pse-pd: Use regulator framework within PSE framework Message-ID: <20240322152226.7de347a6@kmaincent-XPS-13-7390> In-Reply-To: References: <20240227-feature_poe-v5-0-28f0aa48246d@bootlin.com> <20240227-feature_poe-v5-13-28f0aa48246d@bootlin.com> <20240304102708.5bb5d95c@kmaincent-XPS-13-7390> <20240321171524.0b04bfcc@kmaincent-XPS-13-7390> <20240322113950.27d35376@kmaincent-XPS-13-7390> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; 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=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Fri, 22 Mar 2024 15:07:45 +0100 Oleksij Rempel wrote: > Hay Kory, >=20 > On Fri, Mar 22, 2024 at 11:39:50AM +0100, Kory Maincent wrote: > > Hello Oleksij, > >=20 > > On Thu, 21 Mar 2024 17:43:14 +0100 > > Oleksij Rempel wrote: > > =20 > > > On Thu, Mar 21, 2024 at 05:15:24PM +0100, Kory Maincent wrote: =20 > > > > Hello Oleksij, > > > > Sorry, I forgot to reply about this. > > > > This is specific to pse_regulator driver. Could we tackle this chan= ge in > > > > another patch series when the current patch series got applied? > > > > Also I don't have the hardware to test it. =20 > > >=20 > > > ACK, no problem. =20 > >=20 > > I have a question unrelated to this. > > Why do you add refcount on the pse_control struct? > > The pse control is related to the RJ45 port. Each port is exclusively > > related to one pse control. > > Shouldn't we return an error in case of two get of the same pse control > > index? Do you see use cases where a pse control could be get two times?= =20 >=20 > I assume, any instance which need coordinate PSE behavior with own action= s. > For example - PHY will probably need to coordinate PHY state with PSE PD > classification process. Indeed, I was focused on devicetree and didn't thought of coordination between PHY and PSE. Thanks for your reply. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com