Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2712885ybl; Mon, 19 Aug 2019 06:28:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwi8js75/0wVPbpGEcoEVVHcTcJ85pAf1TwTgbvmYT/ValqTHrzC0m+pl+SqnYihQDK+Rc X-Received: by 2002:a65:504c:: with SMTP id k12mr20133240pgo.252.1566221333862; Mon, 19 Aug 2019 06:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566221333; cv=none; d=google.com; s=arc-20160816; b=GLqNL2rUpNePcbQAfZ59B8LA/v9y2Krs0+NRNYIM1equLY6XiKne1ONK30BX+01vcn nK1FxXPY+T9+VwnpSvLR7ibrGUiS2qIs+FOcir6803/mLlg/XYw/S4Wi36OP7UxufIKK lsWEpO2w1XFCtRIRSWsCi9/q2ztoJ9gdAAlt2HLWElvAU6FrNB8/dbtGrf40gaLK6hVt WiD+ZqvO7HmxG3oYq+wUPW5DpcmV2XhhzkjyI/m+U602krTQgir1yrj/LcaVeer746T8 9pd7Du36kOqpfhVlWoH25JaLjDMMwTja1yk0P7k6eJTGfe2kX0rQCO/kKcI9gK9q1E73 ZpGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UyJXh5G4lCxvf58D0NEKhzaJuQrSIL3MtD7HQ1EPJX8=; b=v/W1otqI3uNKD2eU9LMpoCd5Uw5jE4Cojwue4SJ2oSaUQRvS2GFwe0lEIpVZi8CXpx H+284JcgH03rdJBolB0CK2ZFBcp78dwNWF+IGQ3H5pusiTbtjGm6Yah05DoE0gQMYnrw 4Bl5bNN67+wbfdwxSVDsnKNEQ7b14LWM2N1ASrKQXdPs1RPiKI5idO3IXnLviaBF1oqr i9amaR6mbxU+VxCn3/WwTZzm1L4D2SE+a/ftDMBiAgNKP7dg6pGVZwRS65vSM8QF6964 sT0D7atXVzKr3ZKstYeREQ80tM2iFUwvBvSfE+O9P7G8HYWTo9f0ofFr5U8S08xv0RpW c6xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=zyzsLyF9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z186si9887351pgd.162.2019.08.19.06.28.37; Mon, 19 Aug 2019 06:28:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=zyzsLyF9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbfHSN1g (ORCPT + 99 others); Mon, 19 Aug 2019 09:27:36 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41532 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727391AbfHSN1g (ORCPT ); Mon, 19 Aug 2019 09:27:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UyJXh5G4lCxvf58D0NEKhzaJuQrSIL3MtD7HQ1EPJX8=; b=zyzsLyF90TE2rKMmt9lxn5jqDK DOFTgMMkek8YBO0CRR/+2+DzHpUyu6E1G1Wqr1JeMzOraCl3JsxZQD0vuCGoL1u8AsZvq+x58UGMZ DWPCqJSF7jTFJWVF+sGluX7dqSOnKDQB8q8v1wWHUawe/0zgg/tzY76PpXePhT+9+7OQ=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hzhh7-00060z-7Y; Mon, 19 Aug 2019 15:27:33 +0200 Date: Mon, 19 Aug 2019 15:27:33 +0200 From: Andrew Lunn To: Hubert Feurstein Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Cochran , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" Subject: Re: [PATCH net-next 2/3] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock Message-ID: <20190819132733.GE8981@lunn.ch> References: <20190816163157.25314-1-h.feurstein@gmail.com> <20190816163157.25314-3-h.feurstein@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816163157.25314-3-h.feurstein@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -45,7 +45,8 @@ static int mv88e6xxx_smi_direct_write(struct mv88e6xxx_chip *chip, > { > int ret; > > - ret = mdiobus_write_nested(chip->bus, dev, reg, data); > + ret = mdiobus_write_sts_nested(chip->bus, dev, reg, data, > + chip->ptp_sts); > if (ret < 0) > return ret; > Please also make a similar change to mv88e6xxx_smi_indirect_write(). The last write in that function should be timestamped. Vivien, please could you think about these changes with respect to RMU. We probably want to skip the RMU in this case, so we get slow but uniform jitter, vs fast and unpredictable jitter from using the RMU. Thanks Andrew