Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1847290iog; Tue, 14 Jun 2022 14:57:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJe+8+Mcrr8b5bDJEr/z2CnKEOdtgmuWzegWy2ZxG60WeNfDa1EC0Vm6xF4AyOaV8Sm4BM X-Received: by 2002:a17:90b:240e:b0:1e0:775b:f8fc with SMTP id nr14-20020a17090b240e00b001e0775bf8fcmr6695978pjb.132.1655243865990; Tue, 14 Jun 2022 14:57:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655243865; cv=none; d=google.com; s=arc-20160816; b=Au+trU26LsxtJbfI7s2eMT39EiDewJzuk2tYIsqJ361QKSX0oF3tIN1HSymFwhnddn 1Y3zf4Zip0j/DfY0VM5Y7j+deJoEqOZkjszziNOFFmcgZpbBl7fzn/Wp5i+ZN+RfcqqJ F9lMSus2nIkrWoOh0SBfZyBOpRbIi8P1zRHzYybcdo2nOY9bAUGe+NW+8FTmqmP2A0OT AfJNIUghKRXVDn91kAjQrC4fa9y/el3VG48VZZFn+uXmgnc5290CUP/8TYyzn9d682Sh KIPls3o0O6E3jNOCGVBwmFjOkje5VrjO/rIOIq63BYN9Nq11WJtdo4EFa58sSrD0tPMO Qk7A== 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=xfkmdhpjTHYwAxAIlk0l1dxq56t6l3kfqLcC/dieiG4=; b=pS79VhA9ewxoShFZUF0vvrgjmtf0lElhRbg1ye+31/WK7DUDhrAzXpkHwO5ZfEui9I 6BnJ3+ZGwCCIxHJWE9okmUZYyfXlaoI0iw0/On9KiVK9U8CWvc6LRp8BX4PLOhwjiYD5 zM0IJpNMfmLb2N1MF5+2fH0hKL1IrGPr6mr0FmiTfaFr6zsSyrLFnxGtISZFvULJUCsn renCoxWAWkhtDo982Qd7YH76iSc4yZsg6Gd4blqi/ffjVtoBFUKrLehb6NUVuUVQ5+46 NWVdrKcmf7l0QQNqtk5cTzO70NPViPu8g8Jb+jMHQPga5WxdaRY92crcyEFroCwEqYzV +6mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=LxLdA4en; 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 v64-20020a638943000000b003f5fa8c55e9si8665586pgd.9.2022.06.14.14.57.34; Tue, 14 Jun 2022 14:57:45 -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=LxLdA4en; 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 S1358000AbiFNViM (ORCPT + 99 others); Tue, 14 Jun 2022 17:38:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354348AbiFNViK (ORCPT ); Tue, 14 Jun 2022 17:38:10 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C7F11460; Tue, 14 Jun 2022 14:38:07 -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=xfkmdhpjTHYwAxAIlk0l1dxq56t6l3kfqLcC/dieiG4=; b=LxLdA4enRhmptfXjFIE1ZGX2GR LnWi+6re2QkFS/MNWzJT/VzU2JUJDfWYhwbqvdGZf6DTwayZR8AAYAqUpEXekUAu1m3lDEandyv4i d9s7dPBc3ZzLnVMG1OwlNoHR0Up//E4sT7+WfpXUGUOtumvnaBdzlUsdW9nAfQlSifzg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1o1EES-006vrA-Sv; Tue, 14 Jun 2022 23:37:52 +0200 Date: Tue, 14 Jun 2022 23:37:52 +0200 From: Andrew Lunn To: Oleksij Rempel Cc: Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , 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> <20220614051217.GC4536@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614051217.GC4536@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 On Tue, Jun 14, 2022 at 07:12:17AM +0200, Oleksij Rempel wrote: > On Mon, Jun 13, 2022 at 04:56:37PM +0200, Andrew Lunn wrote: > > > If I see it correctly, there is no way to notify about remote fault when > > > the link is up. The remote fault bit is transferred withing Link Code > > > Word as part of FLP burst. At least in this part of specification. > > > > Thanks for looking at the specification. So ksetting does seem like > > the right API. > > > > Sorry, i won't have time to look at the specification until tomorrow. > > The next question is, is it a separate value, or as more link mode > > bits? Or a mixture of both? > > It is the bit D13 within Base Link Codeword as described in "28.2.1.2 > Link codeword encoding". Every PHY will send or receive it, but may be > not every PHY will allow to set this bit. > > The actual error value can be optionally transmitted separately withing the > "Next Page". So the API needs to handle it being optional. We have a bit indicating a remote fault has been indicated, and then a code which might indicate more details. > by using ethnl_multicast()? I it something what should be implemented? Yes, that sounds about right. It would be nice if we could add generic code for c22, but i guess that is out of scope for you, you seem to be doing C45. However, it would be nice if it just worked for all C45 PHYs which follow the standard. Andrew