From mboxrd@z Thu Jan 1 00:00:00 1970 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 ED0AD381D2; Fri, 24 Nov 2023 16:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WVPeKQw/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02DE4C433C8; Fri, 24 Nov 2023 16:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700843758; bh=81UaCbvzEewXtgJlUNfRbHsaHofBH6A66ylN8DLvIiU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WVPeKQw/bPu6BhhgtDIyqtRg38BzBzz66/kYT2nDsJWD0DaHJ28JcTCzNMNxQt5hC CJWNgL2YhgfjqPQ3Fv/dNQAXJmvLOIF8AXu1B6JncBeynr7B6w2VVtuqNqSIuA41OL UmLuK1+40trdrn5BXlSW7tQuzNEHlwS5zQ38Li4X7+6k5iPTd16tYx2xEmWPiUIAGP TjcO3Mfabu9ac5j7sTudN4i3cnrKgSmCMpkDdyAc6WvPJCzcxosWGnHL+Z6/mK2ny6 H3MN0imC3UZl30O57BsYjh1OTDOvUKEU/o7o2V4qz2Y2On2Z2EPone7/jOZfj2Frh7 d5mzQxnikU1Fw== Date: Fri, 24 Nov 2023 16:35:52 +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 , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 3/9] net: pse-pd: Introduce PSE types enumeration Message-ID: <20231124163552.GR50352@kernel.org> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-3-be48044bf249@bootlin.com> Precedence: bulk X-Mailing-List: netdev@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: <20231116-feature_poe-v1-3-be48044bf249@bootlin.com> On Thu, Nov 16, 2023 at 03:01:35PM +0100, Kory Maincent wrote: > Introduce an enumeration to define PSE types (PoE or PoDL), > utilizing a bitfield for potential future support of both types. > Include 'pse_get_types' helper for external access to PSE type info > > Signed-off-by: Kory Maincent ... > diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h ... > @@ -133,6 +150,11 @@ static inline int pse_ethtool_set_config(struct pse_control *psec, > return -ENOTSUPP; > } > > +static u32 pse_get_types(struct pse_control *psec) Hi Kory, a minor nit from my side: as this is a function in a header file, it should be static inline > +{ > + return PSE_UNKNOWN; > +} ...