Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1281184rdb; Sat, 18 Nov 2023 09:39:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPW/jjptE2KWBG2RbHR+pICGLltbWf8upMM1KiI8kaMw11jtT8DtP8POhSCy1X0z8vSBhS X-Received: by 2002:a17:90b:1e04:b0:280:299d:4b7e with SMTP id pg4-20020a17090b1e0400b00280299d4b7emr3957095pjb.19.1700329162081; Sat, 18 Nov 2023 09:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700329162; cv=none; d=google.com; s=arc-20160816; b=KYfFQ0vHkpKdyVfY/yKW3LzffIWNmlI6EHwRPSRP4xAwBvwlYHT1svDEdCNXEz4XTh ATx7cZWLPh2YW/YUGMt6Maz4m3kgVtkDDUAzUssFYLxdPJI8P5EARXe7TESLPIQKdgRs GyOD7aY4dlfswwv6HoVqRmTwf6J+7SO8ktoSRCFwL67j+xj28aL3qWTMukgVbOTIf8F3 UZVLhwXsg/OC7UQEZiAINlD5FK3F7pl/wjdHyzyZ9i3B1mTrl7hLkUY3qZqH9ib0Un/C WPpd8+GFYYW+ER1vCt1frR01/qFKDnW+6Sp50Iuv0jKt2lESzPzBEvcCT3eVwdL4AMOs x2UA== 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=ODf/EeD7TdfM/V4kFavfoqfzEFUPK1joSi1qIu1/vpo=; fh=dBSj1Anongxm3AqEVsAoqej2eyguUa3eeydsriREnjo=; b=hpZkP3DCOo78D3DUMZlszDVzCW478VbM0iQDzQAp18QHndZ8tje3wyQP/dooWNAGFh 9xX4umL35iz36ZS8n087vU94e8GXuqWHKCgSq3qtwHdYcFvAJQYslsdEEr2aYNo3iNU2 dsCkmeBg539RBUcLWQb5qtAB6n3kF6ziBPQDG9MrD7RFWeFgKJ2noHXGVmH52nRh2Sd2 6UtmQVW/IZsGn8NLsON350T3UI8NKxtJPdriIkIYSk7hWRRT8FEjgZJ1C5DDQzS5b6i4 BuUFYCxgnugUVcdCPAcOzmFOvvmcxE+U+45srAZCgd5ayjKYRu994hj7am7LlDlvHolx 7jyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=eGCQe3hg; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id sc14-20020a17090b510e00b0027d7eebd4c0si4836506pjb.109.2023.11.18.09.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 09:39:22 -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=@lunn.ch header.s=20171124 header.b=eGCQe3hg; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6B4E18068120; Sat, 18 Nov 2023 09:39:19 -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 S230157AbjKRRjH (ORCPT + 99 others); Sat, 18 Nov 2023 12:39:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjKRRjF (ORCPT ); Sat, 18 Nov 2023 12:39:05 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 935FE1AD; Sat, 18 Nov 2023 09:39:01 -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=ODf/EeD7TdfM/V4kFavfoqfzEFUPK1joSi1qIu1/vpo=; b=eGCQe3hghc9aC7kqR7Alui+/Y/ Wd918gat2/NjcQkpHigcJScHVxcq/DLVNWKzkD+HFQ2J+T2m+AVawujJT/6g6HqDYVLeCdZYXKjVq fSCofpLsEC86sjc2Kmt3dhd7BKkCbqozrCVEHUGaZkmWN5kgWlx50j/BVbDWj0HUXxo0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r4PHH-000WBY-3h; Sat, 18 Nov 2023 18:38:43 +0100 Date: Sat, 18 Nov 2023 18:38:43 +0100 From: Andrew Lunn 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 2/9] ethtool: Expand Ethernet Power Equipment with PoE alongside PoDL Message-ID: <04cb7d87-bb6b-4997-878d-490c17bfdfd0@lunn.ch> References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-2-be48044bf249@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116-feature_poe-v1-2-be48044bf249@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]); Sat, 18 Nov 2023 09:39:19 -0800 (PST) On Thu, Nov 16, 2023 at 03:01:34PM +0100, Kory Maincent wrote: > In the current PSE interface for Ethernet Power Equipment, support is > limited to PoDL. This patch extends the interface to accommodate the > objects specified in IEEE 802.3-2022 145.2 for Power sourcing > Equipment (PSE). Sorry for taking a while getting to these patches. Plumbers and other patches have been keeping me busy. I'm trying to get my head around naming... Is there some sort of hierarchy? Is PSE the generic concept for putting power down the cable? Then you have the sub-type PoDL, and the sub-type PoE? > 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? Andrew