Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14136934rwd; Sat, 24 Jun 2023 12:52:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hHPDVdFv2zMOsjf09XFuRo1sAi/APK3KVNs0qUIwSMur2P0KF6jPz0tezCkROtZ76ltnz X-Received: by 2002:a54:4d83:0:b0:3a1:acef:7e2c with SMTP id y3-20020a544d83000000b003a1acef7e2cmr4739667oix.58.1687636368146; Sat, 24 Jun 2023 12:52:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687636368; cv=none; d=google.com; s=arc-20160816; b=B9SY4MEF09PY6LZVyoaV9HI9zQdhUn/BJcweTqB5rtX97KqT2O5oHdHE3csamkweWN nW4ySIMXsAS8z5Mv5Hnv5SFl/IbZbyOR22Yu+YzE8SQtRYoJ1GtlCMg52nKOglvBGKYW sZ8lB8UezCips72+OSxl+TI8F2AaVqgDo5nZO3mTn7DpvbhuHBQE4znRF9ukaGqJhLYK 3zkxIpJ0kXTgf1mQLnbJLqIlL2G2R1XYnYxF+e46aoBJJBjtvDzkHAUJBosA8SmBy2lp I6GbxKk/apXxWiA3VsvSlLNdhxIAn8YNzWJd5gXhyzCUvV3ADQgnksOuFvj3eNe/2XE1 nn5g== 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=XzCdTix0xRKxmSkEQFnNFoYSsIEO5imla3RxHxrM7iM=; fh=pQT3CYg6NGm3OzlWz47XpmqT+Rf32i+H2zP2iKfEdLA=; b=a07KNvnaG3FaYj6/6fi3I+7x62T4zLB84pu+Qre6MwtHzTEqjqUuygNUbLEB0PeTK8 a4NCplLH7rIm0rDUQmVA8qEXg+6XypWZj0lnZUrT7GFeGJE8xGhoSEOHGGwp2ON3TKKO Zh1zOh2lwaJxDdewvJ3aFx+AWLHtBcr856pqo1mWzbkIML8zhPHxkvd6gnXD2TkpsIRT gP/tps3UB2wgUurUwiTgop/fsU0F/k71CnFph4g84PMlJlrvUJTaMe+9skk9beR8URUd UqnPax78swKyxLNzWtdKrWObBGixLALMC0F5pApZ5blwz+Yi6MhAVS4hWKQAHwp6Z2Uq Qu3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=AuZuuPeW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t6-20020a17090340c600b001a29280c544si1704101pld.263.2023.06.24.12.52.31; Sat, 24 Jun 2023 12:52:48 -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=AuZuuPeW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233258AbjFXTdN (ORCPT + 99 others); Sat, 24 Jun 2023 15:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbjFXTdM (ORCPT ); Sat, 24 Jun 2023 15:33:12 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F88E113; Sat, 24 Jun 2023 12:33:11 -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=XzCdTix0xRKxmSkEQFnNFoYSsIEO5imla3RxHxrM7iM=; b=AuZuuPeW42aaz6LP8e0Ysanbs8 iX1n0kYyDzzKmHmYQMSgoDL2QTj/Z+40IJ+cJq8l8AOM5saJMlOs7rOHSdb4ZSHpHYq5M8LND0tJi 7dNHxFrgNYr1iYZN22Kc7k9z75ejwRGK8767vyvbgKPnBGl1Z5SKytC9Cm8NTryV4CtA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qD90J-00HRdD-7w; Sat, 24 Jun 2023 21:33:03 +0200 Date: Sat, 24 Jun 2023 21:33:03 +0200 From: Andrew Lunn To: "Radu Pirea (NXP OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sebastian.tobuschat@nxp.com Subject: Re: [PATCH v2 13/13] net: phy: nxp-c45-tja11xx: reset PCS if the link goes down Message-ID: <0c2033a2-beb9-47ce-92f6-3c700e7980fc@lunn.ch> References: <20230623074123.152931-1-radu-nicolae.pirea@oss.nxp.com> <20230623074123.152931-14-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230623074123.152931-14-radu-nicolae.pirea@oss.nxp.com> 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,URIBL_BLOCKED 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 Fri, Jun 23, 2023 at 10:41:23AM +0300, Radu Pirea (NXP OSS) wrote: > During PTP testing on early TJA1120 engineering samples I observed that > if the link is lost and recovered, the tx timestamps will be randomly > lost. To avoid this HW issue, the PCS should be reseted. > > Resetting the PCS will break the link and we should reset the PCS on > LINK UP -> LINK DOWN transition, otherwise we will trigger and infinite > loop of LINK UP -> LINK DOWN events. > > Signed-off-by: Radu Pirea (NXP OSS) Reviewed-by: Andrew Lunn Andrew