Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2411530rdb; Mon, 20 Nov 2023 10:01:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IG35T7I+wpITUOsoORKv7rX71JkwzU4Y2qARKpHg5Vz3B6WWYSljW9sSwmmHF0KqWQNs6bc X-Received: by 2002:a05:6870:514e:b0:1f9:55fb:2ba9 with SMTP id z14-20020a056870514e00b001f955fb2ba9mr2097622oak.3.1700503309991; Mon, 20 Nov 2023 10:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700503309; cv=none; d=google.com; s=arc-20160816; b=cRIQpFyIg/silK/k5fi5KF83S6DrhyJhykGHnMkSoZ+zUfaJby7v6GLFRjp69zd1vZ Bk45NvGOHqDuFWmRTgdHKKGdHteyZuIQ7rU4fe6QU7z9XmynwIIFn+zfiNukdvFZIbCZ t9kgpFjZX4MpvzFy8nk2ck260ayZyp22kTUBcCFuTDe2s+cFDRUhzDa1Nqgpp1iwE7V3 6ryRPaQzWv8EuLxXNvmDIK0FnL4Tk4ECbWaP7Z48wunLDWET25jCKtGm4/UPWXyzAtVk 8SE7Cc4gGaFEkYc2+PyOJTw7D3ru0TJRNbD0BsAGjWDu1VcTaVyJ21EsDyGAYfhv5sa+ 72gg== 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=5wD7wBF+lHKdF+Dqen+lnC7hkw+eQyJUlyzbsg0+08c=; fh=YngtbU/0GOittQqM9caeaPGULvlolvGxhDuagsvqC4k=; b=Gd2x1HMWHp66QjsukS7Wp52KD+2JY2KxJNf2KfgDJdfAEIB/nP1R2Lg6SmWcr2J2Hn fnHHwdVU58+LzhAgBRrC5HwgHqNq7dDmiweWptmghQv4/Fy3i27QhRdftxYVaze+ATzn 7a19Qg20eFAREUtK3EhNoLPmvW9xINg8YHjDwv5UziAxAUwqZo18b8Nj/lv9EwBovNL4 F9GOKLt7zR5NIkPUiJk2oM3QmQ/eJg4Qi6YpvtPY0xEFQ7gVDiYvC6k31RRS7b+5OCrD SKglxIS6wncUaaBkY6IXDo/vHgyUYR6vK0ZpWVWOtgy4qH2QIDvabquIyRWqceyxvJx8 /+/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hjw7Emvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id jd14-20020a0568702a4e00b001f93a6cc8f4si901104oab.139.2023.11.20.10.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 10:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=hjw7Emvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 804B7808652E; Mon, 20 Nov 2023 10:00:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233821AbjKTSA1 (ORCPT + 99 others); Mon, 20 Nov 2023 13:00:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232661AbjKTSAZ (ORCPT ); Mon, 20 Nov 2023 13:00:25 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C40E92; Mon, 20 Nov 2023 10:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=5wD7wBF+lHKdF+Dqen+lnC7hkw+eQyJUlyzbsg0+08c=; b=hjw7EmvbLqLK70QVQXYoHYyWgE RaWMzEwXzQL+xor+owvdn5Wjz6Y5h8Epeo4tVEyFU0JK/NbxjR7oNneI5ZpBkBr4sh33W1orqVd2M qpzH1sFnaWwBCtj6mv06ydHv1PZiHRm2u8s/SmRynOvHJesAIZyNGXRKzx5zDli7KgL8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r58Z1-000g3L-Tr; Mon, 20 Nov 2023 19:00:03 +0100 Date: Mon, 20 Nov 2023 19:00:03 +0100 From: Andrew Lunn To: Oleksij Rempel Cc: =?iso-8859-1?Q?K=F6ry?= Maincent , "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 2/9] ethtool: Expand Ethernet Power Equipment with PoE alongside PoDL Message-ID: <2539b109-72ad-470a-9dae-9f53de4f64ec@lunn.ch> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-2-be48044bf249@bootlin.com> <04cb7d87-bb6b-4997-878d-490c17bfdfd0@lunn.ch> <20231120110944.66938859@kmaincent-XPS-13-7390> <20231120111008.GC590719@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120111008.GC590719@pengutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 10:00:45 -0800 (PST) > > > > struct pse_control_config { > > > > enum ethtool_podl_pse_admin_state podl_admin_control; > > > > + enum ethtool_pse_admin_state admin_control; > > > > > > When i look at this, it seems to me admin_control should be generic > > > across all schemes which put power down the cable, and > > > podl_admin_control is specific to how PoDL puts power down the cable. > > > > > > Since you appear to be adding support for a second way to put power > > > down the cable, i would expect something like poe_admin_control being > > > added here. But maybe that is in a later patch? > > > > No as said above admin_control is for PoE and podl_admin_control is for PoDL. > > Maybe you prefer to use poe_admin_control, and add poe prefix in the poe > > variables. It will differ a bit from the IEEE standard naming but I agreed that > > it would be more understandable in the development part. > > Official name for "PoE" is "Power via Media Dependent Interface". PoE is > not used in the IEEE 802.3-2018. Using names not used in the specification, > make development even harder :) > Especially since there are even more marketing names (names not used in the > specification) for different PoE variants: > - 802.3af (802.3at Type 1), PoE > - 802.3at Type 2, PoE+ > - 802.3bt Type 3, 4PPoE or PoE++ > - 802.3bt Type 4, 4PPoE or PoE++ From the 2018 standard: 1.4.407 Power Sourcing Equipment (PSE): A DTE or midspan device that provides the power to a single link section. PSEs are defined for use with two different types of balanced twisted-pair PHYs. When used with 2 or 4 pair balanced twisted-pair (BASE-T) PHYs, (see IEEE Std 802.3, Clause 33), DTE powering is intended to provide a single 10BASE-T, 100BASE-TX, or 1000BASE-T device with a unified interface for both the data it requires and the power to process these data. When used with single balanced twisted-pair (BASE-T1) PHYs (see IEEE Std 802.3, Clause 104), DTE powering is intended to provide a single 100BASE-T1 or 1000BASE-T1 device with a unified interface for both the data it requires and the power to process these data. A PSE used with balanced single twisted-pair PHYs is also referred to as a PoDL PSE. So it seems like, anything not PoDL PSE does not have a name :-( However, everything not PoDL PSE seems to be clause 33. So how about: enum ethtool_podl_pse_admin_state podl_admin_control; enum ethtool_c33_pse_admin_state c33_admin_control; At least inside the kernel we use c22, c45, c37 etc. I'm not sure they are visible to userspace, but if we don't have a better name, maybe we have to use c33 in userspace as well. I do think naming like this makes it clear we are talking about two parallel technologies, not a generic layer and then extensions for podl. What do you think? Andrew