Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1272518rdh; Fri, 24 Nov 2023 08:38:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0qUG5UoUgN9LJzBf30NaE8naBkYqj0R1XH5DJ9PgcRy5h6VN7osWUQ6zgkN5IaSU6f3AN X-Received: by 2002:a17:903:2783:b0:1cc:43af:f568 with SMTP id jw3-20020a170903278300b001cc43aff568mr3510594plb.6.1700843912467; Fri, 24 Nov 2023 08:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700843912; cv=none; d=google.com; s=arc-20160816; b=nP/A9WV3jHYAh5Yg+aut5lmmTV73Zcc0rvru7V2aWbAhmszOp0eGxZyizCLvfpShzt xndW7LyF675ki7W2QSzP/FWBOIk7QNvnek/hgk0WDcNvNdMuyxdwaHbq5pzKETIEdtSR MahsNWqHwNRtQA5GFHrRnQRDCbIGYsembLeqL2HKmaxa0dr+9YvHG8/0uBjTTF29geUE CdCL+NDCB74SGcYWzXs1BcRH58EkGlYC1aZ3W7evatb55D2QZoLw/UGVuR6uZpjmiVuO UrYvoLZyQfh6SEPccIwBwxdhnGQkZEkX2YYtSSo1gqkKvEfdtXQCxMy78dl2shgj0820 soUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HdJPSRenS8jnmu1r/cvPv4bXpu2QeUxBOHomdfrac40=; fh=dBSj1Anongxm3AqEVsAoqej2eyguUa3eeydsriREnjo=; b=onpFAF7p5xFRESwFT1HQmE+9w9LCQArsJMF8TSO8L5PpseykxhsrijvjK9b38LdskD ztmu3tzeoCxZUkorcHN+PjOsFpo0NVRZjhQhCB51qHoYGtZb3OCr1+LoNSFK6XMSa8NT dk32SS9GiCwdvQmwJJf0WCGt2phaP8iWFsB52HseHnuJF2trTIgQsz3CB959hzGpXuGB Xg6WKXtREM+CX9TQZKY1j/sv8cxvRBMj5isrJADBB+MtIRy2zaFcbt+X8LnrhRCZuA43 ZYSppBnqZIZvO1iHkcMGpChdR4y1OB32WbN4EsGGdJI0E5pJEotDpudezL1vVMQaVZHb bEUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WVPeKQw/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id cz11-20020a17090ad44b00b00280216d7e36si4011842pjb.171.2023.11.24.08.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 08:38:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="WVPeKQw/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 59AC3804DD90; Fri, 24 Nov 2023 08:36:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235270AbjKXQgo (ORCPT + 99 others); Fri, 24 Nov 2023 11:36:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231579AbjKXQgR (ORCPT ); Fri, 24 Nov 2023 11:36:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E675C1BF8 for ; Fri, 24 Nov 2023 08:35:58 -0800 (PST) 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> 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> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 24 Nov 2023 08:36:55 -0800 (PST) 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; > +} ...