Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1153439lqp; Fri, 22 Mar 2024 07:08:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjFCvxHN2DorILRX8vloydk67H79qGKAX/QbOGI5MR4Zeld8xsMCX+7JOnWfcXZ/Cx1bxGR7a1XAUT8XvuelUIFAIDmdaq6vAPZ7/lkg== X-Google-Smtp-Source: AGHT+IGjLBT9vV08QaUwGqT1OgqmTWLcGvgNnd9c0USpWYpB5XqI0bfP0zH+dAj1ULUvtCT67pxM X-Received: by 2002:a0d:d0c6:0:b0:610:cf4f:b0a with SMTP id s189-20020a0dd0c6000000b00610cf4f0b0amr2341919ywd.5.1711116520758; Fri, 22 Mar 2024 07:08:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711116520; cv=pass; d=google.com; s=arc-20160816; b=N5KnqMQ7pYgxU4Ivl6Sej+qgdG0C/Q1Taw5X4mgFOPXDmkZOZYhH3Z0VY0DYcUTiWJ fcNPowa57DJ1WyjveRPmxbgNM658RJyPJ7k9LEwEqWKkiMrQti5s9Uxxw/TP6EcH1qv9 ffJyFu8++oNTXD5SK8QwpjD1C1UFSwmHMHx5h+wmp9gCr39BQVXg0HWXT6G9b2EKPUUq fFk5NU6e8udC7kGw5SfW5elmEha4yrw45Cj5oR0vxjLPDVmM9QF1eTC2Ag2j6b4c5NVz bmDnNt5bYUoT3WzUzngit61bqQ8nKNY/nvSGWSgT0wOxN83/FQkxlDst9D8qzw8F9BCK amow== 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; bh=FnkGzphwo3ykBAvoF43c0BxZ9tz453nf8vekFPXnQyQ=; fh=RtJSmmKTiXF0/M83V4ACkph6gAzf14g10GG09IW0eG4=; b=lEktV+gylf82Y8Gagb0RCAK3W2Ui9o5SVc9jBHV2mXX6/5mMv6HgcurmwC2TvDTw1e Q2IL3Sp81wtlcH8GofxiDijRCV378RZZaHrLR3W0PNE3sA7yCK1eBI1IiQQxihCDuTWh vEQE1ElQon7q5hJOCbEWG6NAcooCLpufj8SPRmLJpd0QnD1y7PusAQf1HqlxNle97tlK jAgVTlLlP5n68YP+c73kew06VnqI2euUVBWIzi5Gc7ujOvJTJPv4OKSnLdLFry1YJCZ0 Qsj/wjTQDIVz7KlmXDtirSyWB7JD03ngmCqIZ1g5YCNx43g7WDq13ni04bMRWVzCODeA YAOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-111576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111576-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g66-20020a0df645000000b0060a6641762esi893791ywf.32.2024.03.22.07.08.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:08:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-111576-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111576-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 701BD1C2100C for ; Fri, 22 Mar 2024 14:08:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02A4346B9F; Fri, 22 Mar 2024 14:08:33 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 E1DDD3B2AD for ; Fri, 22 Mar 2024 14:08:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711116512; cv=none; b=VaNHEPSwecNkD86g9rJkSKbMGtXJkw3zoNAth0URas9twSl1ggr4QmAjU2qerHcjjx68CEplKJ2J2sfK50ucgSh9BucAdwQhtTxjOn5xa/tGA42We3lC32PMupud2iuiFVbBRXmYdcbmp9eHXy6bg1w5f5noSyiiUjkY+RnpgEg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711116512; c=relaxed/simple; bh=2RQBu0WWiwp083cbydMO+Nr/jPL0tveLGURqe+4Sr70=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jHs6VMY5Qml1dTCwn8b+8foiJBchgBM1c5Od4n+xlg6pCOoFFmQfx+nMBOg62eCJQ8j1xLSit+3Xj3OOYDhaSzZe6TrYZSJx/Mv40PRT3YydsIa7Kv1wZ0eHhdpcUy5Wq9UJLy9DVY5ZqPJeIJJrqEHGl/sk+w/iILHNNkSLkqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rnfYh-00015w-Sz; Fri, 22 Mar 2024 15:07:47 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rnfYf-007r98-Dz; Fri, 22 Mar 2024 15:07:45 +0100 Received: from ore by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rnfYf-00BcL0-11; Fri, 22 Mar 2024 15:07:45 +0100 Date: Fri, 22 Mar 2024 15:07:45 +0100 From: Oleksij Rempel To: Kory Maincent 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: 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> 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-Disposition: inline In-Reply-To: <20240322113950.27d35376@kmaincent-XPS-13-7390> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hay Kory, On Fri, Mar 22, 2024 at 11:39:50AM +0100, Kory Maincent wrote: > Hello Oleksij, > > On Thu, 21 Mar 2024 17:43:14 +0100 > Oleksij Rempel wrote: > > > On Thu, Mar 21, 2024 at 05:15:24PM +0100, Kory Maincent wrote: > > > Hello Oleksij, > > > Sorry, I forgot to reply about this. > > > This is specific to pse_regulator driver. Could we tackle this change in > > > another patch series when the current patch series got applied? > > > Also I don't have the hardware to test it. > > > > ACK, no problem. > > 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? I assume, any instance which need coordinate PSE behavior with own actions. For example - PHY will probably need to coordinate PHY state with PSE PD classification process. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |