Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp339211lqh; Thu, 28 Mar 2024 03:54:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU+q9U4KWHHKPAjwVUrnRcYrXq6pEGjjDJ5kCL0buIaq+YmPvYu12BRhVHIBSqKH4YqcHU1xAfoKMo1JAkEmaoq8w8kCBL9pVOHtA/ejQ== X-Google-Smtp-Source: AGHT+IGjiwJYyt/PoK+WOLaW6gI9h0IFEZWr91xsH2aluZ+F8tqVRYl9tTm/Ws9XZOhALdLNZ2RE X-Received: by 2002:a05:6a20:3d03:b0:1a5:698e:505c with SMTP id y3-20020a056a203d0300b001a5698e505cmr2575520pzi.10.1711623257378; Thu, 28 Mar 2024 03:54:17 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r63-20020a17090a43c500b0029c5b195b5fsi3465861pjg.175.2024.03.28.03.54.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="jnQC3/xR"; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-122787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122787-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EA05EB22167 for ; Thu, 28 Mar 2024 10:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99A407D084; Thu, 28 Mar 2024 10:40:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jnQC3/xR" 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 B872B53818; Thu, 28 Mar 2024 10:40:18 +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=1711622418; cv=none; b=TAuL2LiXoBXucvNhEyn5iQ7MBg2mP4aeHmtGP/TzsYTKd3jz3KoLWrgzyT/ZVjm+nO6QSmhLgyfkGwx56poLs1SHorWcehSBmmP2UtjxAVFe6ZETS932tyJ+rnqapvFyaaR1tqFUd9U0HrdvN2MYxypTiG08zyrTZljTN5E+vHA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711622418; c=relaxed/simple; bh=PFuuAQ7UAQDLr/XGux3xSP9ZSukNKrAk400GL4pCeaI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ly40ZBRCKkE9RqDoshebxLl+hrPQjZSclpv2/0xDuJb3pofasKUyNz0N8qzcON+sgCLfcHm8Q/1pddv06I0B2nPGowjaoFUal9aqx+uEE1hzxul4hmtTtEQ0eH7cUjTTBN3MB+uyCuTSMPfRVbG9qIAsBxqthQmsBerjENk0igI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jnQC3/xR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB5A1C43390; Thu, 28 Mar 2024 10:40:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711622418; bh=PFuuAQ7UAQDLr/XGux3xSP9ZSukNKrAk400GL4pCeaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jnQC3/xRFP0QVRTUNeZoU1I3y8WHjbeIbClQXTonCmY0HLKChE2JxhC2ZI9JRCgfA NsA6JUXigjuchixlHKDNcyFGz2h3qHBDpNK9DAJH0sobRXcnBUhjHot8kJeLULLZfS QTGKC2O1nCFR9+NpZOlVU20eRPehWrlyvtgpewgsZOhwTLYckAp/CXSZYnIP8ttyEf N1oViVVNkjowwegTIg86IwVEnnzzNj04FUM01Vsve/wE6zDEfAZvDGaFqDBCfpi84S v0xHNCGlLZAHHhPnYRS0eBiHgv9n7z30A2d7fCmNG19ev5aZMWXgXd8M2DG7V/eN2n 9PuxhiYvhX5lA== Date: Thu, 28 Mar 2024 10:40:11 +0000 From: Simon Horman 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 , Oleksij Rempel , 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 v6 10/17] net: pse-pd: Add support for PSE PIs Message-ID: <20240328104011.GY403975@kernel.org> References: <20240326-feature_poe-v6-0-c1011b6ea1cb@bootlin.com> <20240326-feature_poe-v6-10-c1011b6ea1cb@bootlin.com> <20240328103322.GX403975@kernel.org> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240328103322.GX403975@kernel.org> On Thu, Mar 28, 2024 at 10:33:22AM +0000, Simon Horman wrote: > On Tue, Mar 26, 2024 at 03:04:47PM +0100, Kory Maincent wrote: > > From: Kory Maincent (Dent Project) .. > > diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h > > ... > > > @@ -73,11 +103,11 @@ struct pse_control; > > * @pse_control_head: head of internal list of requested PSE controls > > * @dev: corresponding driver model device struct > > * @of_pse_n_cells: number of cells in PSE line specifiers > > - * @of_xlate: translation function to translate from specifier as found in the > > - * device tree to id as given to the PSE control ops > > * @nr_lines: number of PSE controls in this controller device > > * @lock: Mutex for serialization access to the PSE controller > > * @types: types of the PSE controller > > + * @pi: table of PSE PIs described in this controller device > > + * @of_legacy: flag set if the pse_pis devicetree node is not used > > nit: it looks line the documentation didn't keep up with the > structure during development: @no_of_pse_pi should be > documented instead of @of_legacy. There seem to be some similar minor problems in [PATCH net-next v6 13/17] net: pse-pd: Use regulator framework within PSE framework /scripts/kernel-doc -none is your friend here. > > > */ > > struct pse_controller_dev { > > const struct pse_controller_ops *ops; > > @@ -86,11 +116,11 @@ struct pse_controller_dev { > > struct list_head pse_control_head; > > struct device *dev; > > int of_pse_n_cells; > > - int (*of_xlate)(struct pse_controller_dev *pcdev, > > - const struct of_phandle_args *pse_spec); > > unsigned int nr_lines; > > struct mutex lock; > > enum ethtool_pse_types types; > > + struct pse_pi *pi; > > + bool no_of_pse_pi; > > }; > > ... >