Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1305134lqb; Sat, 25 May 2024 15:44:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkQnNjF4g404YW+FHppcVN5OhqLyFXcDxXhuaR35b8osweD57h1IjQiQ1yTVJgEC3gUQsJueoNaYmGsAnrflCLowvU+0BlwWu+QTSHAQ== X-Google-Smtp-Source: AGHT+IFfRbaXt422qNTdC8DuqkNMU29c/YvjVEGeDTevBNREruNKLQ28rthhoOrXb7kz4pkz9fp1 X-Received: by 2002:a17:906:6549:b0:a59:a857:85ce with SMTP id a640c23a62f3a-a6264f12ae0mr363487366b.52.1716677065033; Sat, 25 May 2024 15:44:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716677065; cv=pass; d=google.com; s=arc-20160816; b=pJQBuxZ3ySAorolan6AGeeNso1mZ8HTlga8Yabk7IK/UHEtpUPuCMsfjCLxiOxa/AY +IpbM5Ma70VhU372XcVALoCzmfdNP7mQgv257HnxBFJy8LNQpjrCc3L2CRQ7KLYupyub HqBAUnjBKNsHdhpZX8qi499h+rMHZSk48TFadA+0Jw91WKKQp4a3++FsnA4cslagghmc N9RWcj96lWAfxw7gEfWeZzb6oVPOEfcMXycJQJleWJx330SG5sNOu76uxqNWRKDfhsMf P0LX5ft6CIw2kqslXAwGda0VgyFj5IP1qN63LVBKWRF8eedPhQwsAipakzCZc4mOXfg3 4dVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=o19fs6HMmZ1V8pDgoDn4UspMM2YEyH+2kahIoXod/HY=; fh=DB5yUXOhRg8cl/G2+VBxKNleqW5Gby7uwQrP/0HdStM=; b=D9+ZudUmOolk/nN0JPqX3ynY+/t7wcqJKsaUajpp/qJvl3yEHf7OnMS1c6G2OFFCyg aSmM3wltEp7GJ//5ATkoyaa+Mn870cTWNB2DLuvEgWaL62gLJdul6mysVSlfACPvyTRG lsJ6xdzTyUlYpl5P35i9rUktci4IeKpZ6UVF/5IxjdLEXF/CDOHfl/vjsuD8JCyC4JQu VR36JOToZbwew+6w1sId9F9+XXcl2zIwMiFDu4tmIw0eJkFAVEfdpx7eKi+dwOPUGi+M tvBeRIqKdLEsPQHez8nHkpjWZlkJUESXCYdt4MySqU+Y8zBah0kKAkd6gNdapKOzJCO3 8zKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=NilA3JOO; 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-189553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c7fe9c5si217630266b.27.2024.05.25.15.44.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 15:44:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=NilA3JOO; 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-189553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189553-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BB3231F2145E for ; Sat, 25 May 2024 22:44:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31EEB129E6B; Sat, 25 May 2024 22:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="NilA3JOO" 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 893DB22075; Sat, 25 May 2024 22:44:13 +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=1716677056; cv=none; b=u+cZfwtru0l9PMwOToWG3nmuV6EWBBD9+QAgF95iNLN2GeOwvEw7lN014IAoQiPrUwu7oSlmBj45XFia6RIiF3Uaffrg6Q4l2/tbG62GRiMPvcSJJ+fqug2QL/gHlvcb54eUCOBGxAlmBp5ogSpqox4mQh0thrfX6tCd5CRH29o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716677056; c=relaxed/simple; bh=F59Ce8RcTu23jzMytjJfPyYuy2fbrjAOQOqAGNaJSY4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CseHQxydQMUClUSX57B++SOW4dn4xN0UG2auR1sIzLsLWzipZD4bS1ykA3dpkDk6rjMiUVNr9Tnn5Fy99U1Ey7ArIy/3Btc/gSTQMzgipH3PKQqwSq3TI0b1xeLeXutivBcBd9YQ3RUGotZxmWbc8rlwpdyKDMmOoZBnADMhyZU= 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=NilA3JOO; 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-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=o19fs6HMmZ1V8pDgoDn4UspMM2YEyH+2kahIoXod/HY=; b=NilA3JOOCVaARDvokbTynwJOCc 8qQh11B9dzj24BfRy1QPUjRnt4U3IhUYERHwaCUxJgRu5shfyBqB6j9pxhX69v2iM8SoGhmZjTtpa Vho/mHFryvIs2CHnyq8iOQSj5y5bdhbeUHB2If8sb7INxCQ3pBH2Q3GGOxVSj97TIQQw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sB07P-00G0oU-QT; Sun, 26 May 2024 00:44:03 +0200 Date: Sun, 26 May 2024 00:44:03 +0200 From: Andrew Lunn To: Larry Chiu Cc: Justin Lai , "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "jiri@resnulli.us" , "horms@kernel.org" , Ping-Ke Shih Subject: Re: [PATCH net-next v19 01/13] rtase: Add pci table supported in this module Message-ID: References: <97e30c5f-1656-46d0-b06c-3607a90ec96f@lunn.ch> <7aab03ba-d8ed-4c9c-8bfd-b2bbed0a922d@lunn.ch> <5270598ca3fc4712ac46600fcc844d73@realtek.com> <0ec88b78-a9d3-4934-96cb-083b2abf7e2b@lunn.ch> <48072595c9c344fea9c268fd81e4d06e@realtek.com> <8c6ad434-ba3a-4acf-9b10-9dff8efd4ee5@lunn.ch> <6dfaf8a97a9a4689ae642e4f909c7704@realtek.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <6dfaf8a97a9a4689ae642e4f909c7704@realtek.com> > Yes, STP, IGMP snooping, ... are working as you said. However, PTP may > have other special design to synchronize time with the other ports, and I > may not be able to explain in detail here. So long as Linux only plays the roll of a normal leaf node, that should be O.K. Since you don't have a PHY, you need this MAC driver to do the time stamping of PTP packets received by this MAC using the MACs PHC. Linux cannot be involved in synchronisation between ports because it has no knowledge there are ports. Switch firmware will need to synchronize the switches PHC with the upstream source, and send PTP messages out ports, including the port towards Linux. Andrew