Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp662928lqp; Wed, 12 Jun 2024 12:16:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNEnrXP22heSWF1Tg5uGYbvI14FD6staTAR1Sjn1fLLZ2401QULDfilJIlMpHQZnW2r1Vg/wqay+JQtIKqq0hE14FuM2SDzOU6C59DOg== X-Google-Smtp-Source: AGHT+IFJCgO1mR1W/LKMpZDWoBEEHxQBB1eGy4gLTRl4K3wNFP71ibfbaJSpGVd5eBf8nxpQw44Q X-Received: by 2002:a05:620a:4687:b0:795:5219:8fe7 with SMTP id af79cd13be357-797f60c0563mr291091685a.54.1718219800475; Wed, 12 Jun 2024 12:16:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718219800; cv=pass; d=google.com; s=arc-20160816; b=Gs07p1r/KYCL+j4XF9SpUiBLUdBT8DTA6lBdsigOWzkBI+RdzeZY5HBiuCYBkWYWvi kiYuydD8Gcz+gBtwERYyYt9+psbnqBnv0Et/boUWBuZN/6MHgYYI5COp9T8y4il5jhOr 9XMsAMXcJ6mvSUUDWqvU3xfRGnhUycvzxkYDi6sWh7feWMNT+wl2/Bb9c0qOmjgzngtp she6UskFoWTa/Wp1BU+VbIdGcU6qXMDXnKFuxwDNwZiwpLs1w6lkrMST6mqNoFQHu0Ez y2lymoK3UEA8/fR+7HQcTNYE8O5P7OOj5gcT1ttS36nlsEsK9eTTLX9V6luTD8OigblH NdPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9B/Qk2uWCAxs4BHcvpRcMr2sP++AxA6OtnPjaYkILhc=; fh=jwbRpdVKOUkNX0GzvCx9qQO6kPaHKmByY2ypACbK85A=; b=bUqAxZtZCOydXzReHi2S2JqfXMyk80lhI+dkcnMJfsUrnv48uePFtwqL972LftHAm4 iXBY9U7olkmdFN+dOZUa3CljsO7o/ZR8UM+KF7kYZi51mAqzHzX9O3HSuKS89QzYGfmP v5gQ/6ar0FtePnQuHStlH71+CgRPqdHsRNEWL7K1Ret8DvFFYBWZxMrqk0IKarkzqIbB 5Ql8tZNjZ/Q/TjNRU/aeeOTq9ECA2FzIsgZCTW7HO9LidkLN4no6pLtSpegTY1xdC7tB 3iGfxnRWuGNHYLPP4Cac9tBvOaSK65Kf3CAuDLz4ZOnig8fU9Za/sFSZ0gUY3NOMcR69 dy6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TkMZJbTb; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-212144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7974cce740csi701297085a.656.2024.06.12.12.16.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 12:16:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=TkMZJbTb; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-212144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2363B1C23D05 for ; Wed, 12 Jun 2024 19:16:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0333782D68; Wed, 12 Jun 2024 19:16:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="TkMZJbTb" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C82E59B4E; Wed, 12 Jun 2024 19:16:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219791; cv=none; b=nYcG9E9NR5IFD+8t4UJD2v4F63xXxlff29fnLT4t7Yat0yRInBKZqdKnQZynXX8lb+4/oMRXpYSpi6foSYGdWN41FQi4bkuBmcDMhWvo9liBkVpkNr5TfL+8JByEMnf3pgy9bx9KxpQp8xqVi+LlNXWipOXQ865RY4gvA28HLb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718219791; c=relaxed/simple; bh=h9OrCqNtDcSWplzbwmvzVv8Y1Pp41dr3XGTW2LGPiGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=apGcGaTLD/XItXCuDICCJQiIcaIwAKmopAuIEefK5rne3NXOECTmJW4yMIZma3F2HbCRjay4CUOjgon7z0M0qbrXThswwCvBh08oatz9K1lLi9Ss0ctpftefErzn2DniBWUXJEFQZTFf38cQNwEh1voMqgjq3BDpZeRDP7K32kc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=TkMZJbTb; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding: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=9B/Qk2uWCAxs4BHcvpRcMr2sP++AxA6OtnPjaYkILhc=; b=Tk MZJbTbE7A6PhroebI9UO3cW97crXUkmkqufmCKhqFLQPrcrl4kbCK9C+IKtQpp6l6Su28hXZ6h5qG 8Cm9fNIa1vs9k8bRuUYcei+TeB5x8ekQySJEre2NyjrjlgnZuDVZL5aFNltvQydaU4z2OgwSgNR4b 57wQq8BLTGCv1Sw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sHTS9-00HUuE-Cb; Wed, 12 Jun 2024 21:16:13 +0200 Date: Wed, 12 Jun 2024 21:16:13 +0200 From: Andrew Lunn To: =?iso-8859-1?B?Q3Pza+FzLA==?= Bence Cc: Frank Li , "David S. Miller" , imx@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Cochran , Wei Fang , Shenwei Wang , Clark Wang , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: Re: [PATCH resubmit 2] net: fec: Fix FEC_ECR_EN1588 being cleared on link-down Message-ID: <5fa9fadc-a89d-467a-aae9-c65469ff5fe1@lunn.ch> References: <20240611080405.673431-1-csokas.bence@prolan.hu> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240611080405.673431-1-csokas.bence@prolan.hu> On Tue, Jun 11, 2024 at 10:04:05AM +0200, Cs?k?s, Bence wrote: > FEC_ECR_EN1588 bit gets cleared after MAC reset in `fec_stop()`, which > makes all 1588 functionality shut down, and all the extended registers > disappear, on link-down, making the adapter fall back to compatibility > "dumb mode". However, some functionality needs to be retained (e.g. PPS) > even without link. > > Fixes: 6605b730c061 ("FEC: Add time stamping code and a PTP hardware clock") > Cc: Richard Cochran > > Signed-off-by: Cs?k?s, Bence Reviewed-by: Andrew Lunn Andrew