Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2048964rwb; Fri, 19 Aug 2022 14:18:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR47PfR7iUn9XclquSgSh7DQ91Wcmypb+XO4r58cdspJuEFag7YyezJz407g4GRvSIIuoD/U X-Received: by 2002:a17:907:9707:b0:731:51df:c094 with SMTP id jg7-20020a170907970700b0073151dfc094mr5846598ejc.695.1660943900028; Fri, 19 Aug 2022 14:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660943900; cv=none; d=google.com; s=arc-20160816; b=Yp9miHs54cxJ438cyeTHKjB9hd9PRecq6tWa/BLMjeeZDBkfjmKHqIZqD74w410P3v sOz759G7ThBy1JYC//5jru5Bt8GF7egwkxhI5Xu62bIpMHUY5YJgNoonLFen745XbgPG 90ScMchQcfysCT5VUj+pJKzMVyoTUYKkiMzb96cQTotn491h5e5rQEFjT2zu/JfU1aB9 lK2+0rsh2nWRe7gVinJ2+wP5Cn+n/BGx886v1jxjLYUNlFe00AwPJR73pinrgA2GaCnA tUejnW0zz5R6rkx99am3kRbBKOSQdRYUMzKfGVbr4xMsk9UFdvuofxmUzuOYPAY1oeBu XN1g== 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=2Qg6GzOwAJdLWvA18NZ2FtUzFLSyUrTFFV3orfdLpz0=; b=A52aiXS6Cxeg/WyHjdY0NdWL8aR3d0Evb+XcNnG7NpikmLKmGOTOvMZDLqM2RSSorQ CpWEeRUNw1MhSx9AQetKF+NdbtXbKidevWFAob3pFUuBhuDqcijahQTgW95OdNtAOSGD IV4DDjK1Ru8p4szL5WDZG7S0NjoJp03486L2R+uhMzf3OMn4WP1tSqrqD4XnGCu3ZPcj Xz2AUYLED2dmvDwu2v6WBR7YRkK7pFJzeI5qM3o0K/988wY3uM96S9C7MNLndbTC1lJv exWChhRwNMCnrMPz2oDqmULdUwMoAsVQ6zji9jAwPHkovGmDDNxhBU36c2P1tmx7CLn5 cbrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4rDZ+Glj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ck2-20020a0564021c0200b0043be90a5cd7si3201914edb.429.2022.08.19.14.17.50; Fri, 19 Aug 2022 14:18:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=4rDZ+Glj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352230AbiHSVPm (ORCPT + 99 others); Fri, 19 Aug 2022 17:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352419AbiHSVP3 (ORCPT ); Fri, 19 Aug 2022 17:15:29 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13CA1EA143; Fri, 19 Aug 2022 14:15:22 -0700 (PDT) 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=2Qg6GzOwAJdLWvA18NZ2FtUzFLSyUrTFFV3orfdLpz0=; b=4rDZ+GljqxdLz2ppeU2tdOSzy6 2gJOeGo8TPKfjqGlKFelXkW57yeig5bSAo59ROXKpc0Wufdy4eFv9aOl6a6qX9GZ9ZwpHOGsU7VIL BTHH5PpGWtVi/GW16TlQVYhDvnpscrdSiWW3b/U0wHEAFIAnWNRu01SqDVcJZIcJqVh8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oP9Kf-00DxG2-CG; Fri, 19 Aug 2022 23:15:09 +0200 Date: Fri, 19 Aug 2022 23:15:09 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, David Jander Subject: Re: [PATCH net-next v1 7/7] ethtool: add interface to interact with Ethernet Power Equipment Message-ID: References: <20220819120109.3857571-1-o.rempel@pengutronix.de> <20220819120109.3857571-8-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220819120109.3857571-8-o.rempel@pengutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > $ ip l > ... > 5: t1l1@eth0: .. > ... > > $ ethtool --show-pse t1l1 > PSE attributs for t1l1: > PoDL PSE Admin State: disabled > PoDL PSE Power Detection Status: disabled > > $ ethtool --set-pse t1l1 podl-pse-admin-control enable > $ ethtool --show-pse t1l1 > PSE attributs for t1l1: > PoDL PSE Admin State: enabled > PoDL PSE Power Detection Status: delivering power Here you seem to indicate that delivering power is totally independent of the interface admin status, . The interface is admin down, yet you can make it deliver power. I thought there might be a link between interface admin status and power? Do the standards say anything about this? Is there some sort of industrial norm? I'm also wondering about the defaults. It seems like the defaults you are proposing is power is off by default, and you have to use ethtool to enable power. That does not seem like the most friendly settings. Why not an 'auto' mode where if the PHY has PoDL PSE capabilities, on ifup it is enabled, on ifdown it is disabled? And you can put it into a 'manual' mode where you control it independent of administrative status of the interface? Andrew