From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC4DCC433EF for ; Wed, 15 Jun 2022 03:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345642AbiFODiH (ORCPT ); Tue, 14 Jun 2022 23:38:07 -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> 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