Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp267820rdf; Tue, 21 Nov 2023 02:02:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFy+kiaQLW9BWewPYjf+6mguizTfmulIvIHwZccUkFyk1w7VH/zYC9LKwOMCvNmLY75ZJRf X-Received: by 2002:a05:6808:ecb:b0:3a8:5ff0:6b52 with SMTP id q11-20020a0568080ecb00b003a85ff06b52mr10415196oiv.15.1700560963312; Tue, 21 Nov 2023 02:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700560963; cv=none; d=google.com; s=arc-20160816; b=a/6GLHubAiS0kFy6fEYgkiKhrYx4f0U8KV6G8Rl9vkMfgjMbTeHJg9lQ1TQhYJoeXH c0GMrOu61k3+3/F0UprZ9psX4vuwjL8fN9qOSwUluKM09Bxw8Vr+Flz3sTLGKEZASmdY tikAm5XlYQx2GbQ2++24JGdnWtHkFqTFw7HbsLekLz00eHstTzFK/wxPjuooiR/yQBcU u5YuI8h+oxp1oAKbyYNbzZR1dt44+oVc6pDef4HknRQcPvXwi18ygw5L9Dmf+PJXCYAz XlI/hCVb6B9eYb5VLfJ0DuA32S5atKg7l943Pg6upP6Ad0CzzxOkue416VhZXMb9L259 5aSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=ZKnahUa3X0OEYKLHF3ihgq745BsVV7IxE68JfJBRJ+c=; fh=7j/+UamlJaw4enCd2GLN6f+irTqNZid68lD1iMh458Y=; b=VL1cxnA+WETYrNhx1gBXn9sayRpcNrqcPDu6U8hh7tCmX/1c4yyk1BViQICpujgkz8 oRINRRLwd5Fnm1aC1HnHOKedAuGV069oM6a5e0shYqVLQsq4Rv3H3kP6njZI/agE/UyB +oQQa+lroc9509UnGnyZmiwr48Ks7Ex1af1Jk/4apGEifKQha1kYMKF/eow64juoy8KI jYteiW/JhuSjY84WiDSzA0hEdKdzGyC2zvI5AAsfuSEvNmKqLCPA/ce/FPxEaT2n6Eix EQkFhw8ip80rR3ceArndUm/F3egPytg1tkA01X58C5TqS27pH90p9s94RerO/CEqJtJ+ GuXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=crT5w6He; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f22-20020a635556000000b005be327e08afsi9749207pgm.224.2023.11.21.02.02.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:02:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=crT5w6He; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9DC8C806290B; Tue, 21 Nov 2023 02:02:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234165AbjKUKCZ (ORCPT + 99 others); Tue, 21 Nov 2023 05:02:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233639AbjKUKCY (ORCPT ); Tue, 21 Nov 2023 05:02:24 -0500 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A69CF11A; Tue, 21 Nov 2023 02:02:19 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id BD4ACC000B; Tue, 21 Nov 2023 10:02:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700560938; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZKnahUa3X0OEYKLHF3ihgq745BsVV7IxE68JfJBRJ+c=; b=crT5w6HesfV/u6xGyERcYeNgZCgsabD1xFYjej/WUZ42D13pCT0TXWq4f5+ecD17lChEKW cAm7dkphnYA3l+kkOe8nRrOmzZfEr7Qwuf3Nu8WJtXvURbj8nlKG4EDIMbNP3En5myljqy /Is2eA8NsUUVc2MHiF+F4vLoMzU1LlStER3YnrbDv/y4tauA3eEk4cnH5p806gIFzG14Vv xyaX9XHZ8r9GQ34T2k7nGSkaQfwUpYkQLwXwdKOPzPG4zc00kYrfVCPO24a3ZQWXoAieLQ /fUmbVgbCuI/ajqo5djqrPPd+NmmthXZn+DFnpCd0gpLBkNBEFIiDBazustzxQ== Date: Tue, 21 Nov 2023 11:02:15 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Andrew Lunn Cc: Oleksij Rempel , "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: <20231121110215.07f61e55@kmaincent-XPS-13-7390> In-Reply-To: <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> <2539b109-72ad-470a-9dae-9f53de4f64ec@lunn.ch> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:02:40 -0800 (PST) On Mon, 20 Nov 2023 19:00:03 +0100 Andrew Lunn wrote: > > 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 specificat= ion, > > 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++ =20 >=20 > From the 2018 standard: >=20 > 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. >=20 > So it seems like, anything not PoDL PSE does not have a name :-( >=20 > However, everything not PoDL PSE seems to be clause 33. So how about: >=20 > enum ethtool_podl_pse_admin_state podl_admin_control; > enum ethtool_c33_pse_admin_state c33_admin_control; =20 >=20 > 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. >=20 > 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. >=20 > What do you think? If we decide to add a prefix, "c33" is precise but less easily understandab= le, why not using simply "poe" prefix? Maybe as POE were originally PMDI you prefer to use c33 which won't change = over time?=20 Should I also modify the content of the enum? ETHTOOL_PSE_ADMIN_STATE_* to ETHTOOL_C33_PSE_ADMIN_* ETHTOOL_PSE_PW_D_STATUS_* to ETHTOOL_C33_PSE_PW_D_STATUS_* --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com