Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp111485iog; Tue, 14 Jun 2022 20:49:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tB0X10yDpxRA4fboTsIFdT2gqzl19s6u3kDBjlXEXj+A1Q/xMpCKX9/AtmvOVa/ST5Pb0h X-Received: by 2002:a63:4c:0:b0:408:c003:a45c with SMTP id 73-20020a63004c000000b00408c003a45cmr2078641pga.252.1655264971469; Tue, 14 Jun 2022 20:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655264971; cv=none; d=google.com; s=arc-20160816; b=LiWoSZbptJPuw6M4B6W/HF9Cwm09dbSCvdjvzJVyltblKhLNOsSUNIfim4A3hN/wYL Oi6s4xNJvQyThaC3zT5iD8CGeYjekVXmon3roIWizWuqLBksONDge2hvKHQNEQWNAxUM JADTWKX2JY7Kdj8fi+G5LvwGZ3Et16p9qV4xOVUmKX/5Zb01HvHkDiZQFf2mdIj7XfSd B6nhbQmx57BP+O20K4jZXRhTZDTSxzhXUH9Fb46DHWjgWRQtARXeoz64ZO2ul27rGQP6 gYzz6gNx/Dej4CxRBPhl+xFGhNkwQ/r06tREijPIO+cZMAteteohKHplE7/oHyvKA9fK NVfg== 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=lsrUjjkep0NIk/RaiU0ydFTVhZTu6GbkH8h9icB/mZo=; b=NnKEOAeiMUQTvhY6BTlj/awBRKtjxMuS6Ijl5uUI95FRStsV5yPBs0x3wzUV5p193l WDfEZaWBrLMIEf+WqfeZT99ZQBfqj31SCGpvkW39gGE8e/Si5GRZUyHo2XeyFQEDerhD KfyZcK4OI6wr54KFp9tuxXTmNWzs8NqiODtUDRgtDrMlC7szD+an1gY81Fe7hYJR+VkR J3YQ9Go+zON9GwvqRZI+5woaAuA5xCEjsAlyGKzTb8OMoRccuh3W6MVaiKNzXclkV+LM qn1YbcLeE+yMjzAMzS60XVmUP9FKj8pR4w9oHj4E3/rr8VqBxctMZLP92/782W1Y4yjj u2Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wpBbpHFP; 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 p17-20020a056a000b5100b0050dcc1acf09si6556958pfo.111.2022.06.14.20.49.20; Tue, 14 Jun 2022 20:49:31 -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=wpBbpHFP; 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 S1343837AbiFODiG (ORCPT + 99 others); Tue, 14 Jun 2022 23:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236508AbiFODiF (ORCPT ); Tue, 14 Jun 2022 23:38:05 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED8E4D9CB; Tue, 14 Jun 2022 20:38:01 -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=lsrUjjkep0NIk/RaiU0ydFTVhZTu6GbkH8h9icB/mZo=; b=wpBbpHFPbowTv9BFpVZtgpy50b 8rxx7MmritivOZbz1xS6bbDZFevf3XIcE3gSM/tScbgJC96tXUCi5HB4H8nsV+j3h+Sou/qF4d2me 6Id55Bwo0gddSpx7C7I1hUdxd1K2y5JF3S2Gttm28uQVCvZ16GS34zX/YZ8gOLNMUKHM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o1Jqk-006xbQ-9w; Wed, 15 Jun 2022 05:37:46 +0200 Date: Wed, 15 Jun 2022 05:37:46 +0200 From: Andrew Lunn To: Jakub Kicinski Cc: Oleksij Rempel , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Paolo Abeni , Jonathan Corbet , Michal Kubecek , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v1 1/1] net: phy: add remote fault support Message-ID: References: <20220608093403.3999446-1-o.rempel@pengutronix.de> <20220613125552.GA4536@pengutronix.de> <20220614185221.79983e9b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614185221.79983e9b@kernel.org> 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 On Tue, Jun 14, 2022 at 06:52:21PM -0700, Jakub Kicinski wrote: > On Mon, 13 Jun 2022 16:56:37 +0200 Andrew Lunn wrote: > > That would suggest we > > want a ETHTOOL_LINK_MODE_REMOTE_FAULT_BIT, which we can set in > > supported and maybe see in lpa? > > Does this dovetail well with ETHTOOL_A_LINKSTATE_EXT_STATE / > ETHTOOL_A_LINKSTATE_EXT_SUBSTATE ? > > That's where people who read extended link state out of FW put it > (and therefore it's read only now). I did wonder about that. But this is to do with autoneg which is part of ksetting. Firmware hindered MAC drivers also support ksetting set/get. This patchset is also opening the door to more information which is passed via autoneg. It can also contain the ID the link peer PHY, etc. This is all part of 802.3, where as ETHTOOL_A_LINKSTATE_EXT_STATE tends to be whatever the firmware offers, not something covered by a standard. Andrew