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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0561DC55ABD for ; Tue, 10 Nov 2020 14:37:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4200206B2 for ; Tue, 10 Nov 2020 14:37:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730760AbgKJOh1 (ORCPT ); Tue, 10 Nov 2020 09:37:27 -0500 Received: from mailout05.rmx.de ([94.199.90.90]:36085 "EHLO mailout05.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKJOh0 (ORCPT ); Tue, 10 Nov 2020 09:37:26 -0500 Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout05.rmx.de (Postfix) with ESMTPS id 4CVr6p1WvBz9tQx; Tue, 10 Nov 2020 15:37:22 +0100 (CET) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4CVr6Y3mW3z2xbQ; Tue, 10 Nov 2020 15:37:09 +0100 (CET) Received: from n95hx1g2.localnet (192.168.54.16) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 10 Nov 2020 15:36:03 +0100 From: Christian Eggers To: Vladimir Oltean CC: Richard Cochran , Florian Fainelli , Andrew Lunn , Vivien Didelot , Jakub Kicinski , Rob Herring , Helmut Grohne , Paul Barker , Codrin Ciubotariu , George McCollister , Marek Vasut , Tristram Ha , "David S . Miller" , Woojung Huh , "Microchip Linux Driver Support" , , , Subject: Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support Date: Tue, 10 Nov 2020 15:36:02 +0100 Message-ID: <1909178.Ky26jPeFT0@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20201110014234.b3qdmc2e74poawpz@skbuf> References: <20201019172435.4416-1-ceggers@arri.de> <5844018.3araiXeC39@n95hx1g2> <20201110014234.b3qdmc2e74poawpz@skbuf> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [192.168.54.16] X-RMX-ID: 20201110-153709-4CVr6Y3mW3z2xbQ-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tuesday, 10 November 2020, 02:42:34 CET, Vladimir Oltean wrote: > Sorry for getting back late to you. It did not compute when I read your > email the first time around, then I let it sit for a while. > > On Thu, Nov 05, 2020 at 09:18:04PM +0100, Christian Eggers wrote: > > unfortunately I made a mistake when testing. Actually the timestamp *must* > > be moved from the correction field (negative) to the egress tail tag. > That doesn't sound very good at all. I think that is no drawback. It is implemented and works. > I have a simple question. Can your driver, when operating as a PTP > master clock, distribute a time in 2020 into your network? (you can > check with "phc_ctl /dev/ptp0 get") # phc_ctl /dev/ptp2 get phc_ctl[2141.093]: clock time is 1605018671.788481458 or Tue Nov 10 14:31:11 2020 The KSZ PTP clock has 32 bit seconds (and 30 bit nanoseconds). I hope I can send the new series tonight. Had today no 5 minutes without the telephone ringing...