Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5777374pxu; Thu, 22 Oct 2020 10:44:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9OVcQ2bsZeD/MT7Ql7y2keGiVU/Y5VCmaFTU+UDmULe7Wy3D6DC2QPSJEpFRTCFoYmywR X-Received: by 2002:a50:dacf:: with SMTP id s15mr3385877edj.71.1603388693052; Thu, 22 Oct 2020 10:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603388693; cv=none; d=google.com; s=arc-20160816; b=ud+ca4JtJ1DjSmMC3G6d76tGJNDK9IX0YG57L34Qgg4Z1VqVTdRIc6Pe3sO6vfMV9y n7/eKaBmLnApiu2k1M8h2T43QTW13hRAqWFL8bIUaAKbCaN2ht+tMwmG8Rz+Hp4xmzK8 yN892UAgRsx2JolrYDDTz94650i2wgD+AuLPWTD0mdyw1s95FsJcLiee51JmHPqEdu04 JUe3/kDvAMyGGUYYFF3pIeAtHsnRyszQ3Dqlu9orMeDURsCewCavsB9nj6ogXB1s2+It tyq1ZL+XPJGkvaikOtTLoZsPxjr1nPvdCP2Alx2EnxgFAdcnl6VMX6w3aUwob3FUL6HY IRbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Sosi2JPyi8kkDE2zAI3zuo0tpS/CAdUgJvIdNLZZJD4=; b=Mn+m9Hp77oW6x8pXX0BlJe6Ly21DBLmUHvpuxrEYsrEalGRBunynZsOtj7f9Pfaj3U 98fxZmTtJwMh1EfOb5JJV5Tci7juj7389UYELGag87nkRTdcXE4PyJl3R28q/2nBFTJo rj5gC0L+Bd/rXfGR0J3vbYxgyLyJuIWg1ndRqJVbvM1UwP9ajsHtzoLEF+u63khN2Br2 q4bKPL04BzJVnLLNp/7DENEWB8j17Sp2agyGgIDGpV/ULls91Mh6JCG0+hDnotVjI1gx x6UxG2fXZJDESJcHZk+R70221Y66yELUC7bSucAQB4UJVdKXneW66kaNJB14LIcIzS2j WAwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nPkATG0i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz14si1235568ejb.17.2020.10.22.10.44.29; Thu, 22 Oct 2020 10:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nPkATG0i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2900877AbgJVOee (ORCPT + 99 others); Thu, 22 Oct 2020 10:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390764AbgJVOee (ORCPT ); Thu, 22 Oct 2020 10:34:34 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E892BC0613CE; Thu, 22 Oct 2020 07:34:33 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id o9so1047987plx.10; Thu, 22 Oct 2020 07:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Sosi2JPyi8kkDE2zAI3zuo0tpS/CAdUgJvIdNLZZJD4=; b=nPkATG0i9oqy7I6qI49vX3iIOwJ9rokwX8Vc5trOi5MqOuzQwiLV/WKWfP24TqUpIZ KHiL9OyTrTdNAt0aLQj7k+iWQ0Af2W6xFhuxvtEhDBS35t1LeNEIvJD1y/YJqPi80hxi Z18C0rbJcApQf/elUSham3vE8MveihB0WxvWijBBDDITR+52TuPobJF4wEiYYkzhmE3S zH8kYOr/u1jAIMw+ASZlPfLS22eatJ4bK0zrHsM/iSG8Iff+/MnkvLSnAOXU2kDHzIxj /mut4ZSrDVrXwGtVOUCQJBl6Bqy7SPR9ViPtirlZw9nqQ9COE/QI0JsMXxzBEBHDJ3s6 YDlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Sosi2JPyi8kkDE2zAI3zuo0tpS/CAdUgJvIdNLZZJD4=; b=pXYLxbJca79shSwQIiBElumsPykel8GcFrhcjl2xq6drn0KPKeGYDkUETw+tOa+wsm YDNPE9vy39f9TBBZMq+2dSZFK7UvQ2SnyV6uw/uNgHuZNmCQ0srMZza4nDd5avjlciKX TXlynZNKR3VC7EKuNgORmp6nECOT6KCIQUL1QnWTDCXVEXdF/AlKwbGhfbRiTbQjOFcy jKMkzp4v4NrPoQLicYZbtX5M2bbEKrXRTcMetZDuymkuQGbEKEYyWXLLiVPtOZGC78aD 0grvlzIL5XvGCDVYITcsNYr2MsF+JqaMbKq2Rb/0G+E+SroegAY+e8eUfBiI/aRSFsS8 XPrw== X-Gm-Message-State: AOAM533wsa1yK0l3LZI8OD2v81Kw/eCKu+lk4+dYC/T/9bbOwy01g/Gi zCZ81BrM1JrPMCWRb78ITGk= X-Received: by 2002:a17:90a:4b84:: with SMTP id i4mr2441433pjh.132.1603377273489; Thu, 22 Oct 2020 07:34:33 -0700 (PDT) Received: from hoboy.vegasvil.org (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id ca5sm2540864pjb.27.2020.10.22.07.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2020 07:34:32 -0700 (PDT) Date: Thu, 22 Oct 2020 07:34:29 -0700 From: Richard Cochran To: Vladimir Oltean Cc: Christian Eggers , 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 , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support Message-ID: <20201022143429.GA9743@hoboy.vegasvil.org> References: <20201019172435.4416-1-ceggers@arri.de> <20201022090126.h64hfnlajqelveku@skbuf> <20201022105014.gflswfpie4qvbw3h@skbuf> <2541271.Km786uMvHt@n95hx1g2> <20201022113243.4shddtywgvpcqq6c@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201022113243.4shddtywgvpcqq6c@skbuf> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 02:32:43PM +0300, Vladimir Oltean wrote: > On Thu, Oct 22, 2020 at 01:11:40PM +0200, Christian Eggers wrote: > > > it seems that "moving" the timestamp back to the tail tag on TX is not > > required anymore. Keeping the RX timestamp simply in the correction > > field (negative value), works fine now. So this halves the effort in > > the tag_ksz driver. > > Ok, this makes sense. > Depending on what Richard responds, it now looks like the cleanest > approach would be to move your implementation that is currently in > ksz9477_update_ptp_correction_field() into a generic function called +1