Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2984900ybl; Mon, 19 Aug 2019 10:17:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxD878mCHEll38pqhVDZUd64Pa8JtgV53b6uXLFMvnhLrWeI2jEtc4EnWT1Nsq4avzGu13D X-Received: by 2002:a17:902:a70c:: with SMTP id w12mr3315927plq.288.1566235032241; Mon, 19 Aug 2019 10:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566235032; cv=none; d=google.com; s=arc-20160816; b=bPrmYmtADSAh50fvqWgixmKXLbo0FJUQhfu9iZm0qv4N2HI9fdje26pZJmbE0FfhOq 1cXwIuFSBq9ajBpTvxk4hQEWFhven4szQhLj0dW+kmZlg7yzcWUCBjar4Od/+xqAWHSQ ogiSMnSFMUUOGY3O5R+ExIJSqk4nGwQZZuGYZGtKKYXxZWCkcyMn6v+gjbF/2sPnPSQ0 GLcoAWn+ZNsOuBTFuLNXJy/UKilpKmLKeVuIdkY161ZX0LtzylJB1ElDz+PGww54m/ek x3051nxOBLeLhNdMBCvsWVBUoZGdZHtuBT0Vljx6LN1mjTQBhLe3trVnZfzsxtXLtzGR S6lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bR7mwEF0w/r77aEvWSCrOS34E2BqLczCk25LMswkdoQ=; b=QIE8toeyKGH++i//P4mtpQl8WPvVxU7XbUxUiDvKGeU0YW//Ajz/O2gkn/k8xMWFkB CEh4bbYOgQBASxuV3CPQU+I1WaJLpaJQ9Xg/HaTj+iYCMvZkOrMJoPxwVoPQyRcmQs3T ObD8mJ9PhCK/8xHkFh0VYznw26V46jLh5FBi+pY88E6+w37rRsxn+dX38hksTS0tlm1X KrM+PdzJunvZwZG7BaA/wmOnb9Pl11jeyXucjuRt4scuNibnj3i9II+BFyJBot1Klhhs YMtuFS1kcqHSwPbLEzqU10QypuWvEP5z9/0Ydo7tK5NydwNGWT4VbfKmzpwOFc4XLGLs BoEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="X9ED/012"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si10272245pgl.69.2019.08.19.10.16.57; Mon, 19 Aug 2019 10:17:12 -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=pass header.i=@gmail.com header.s=20161025 header.b="X9ED/012"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727995AbfHSROi (ORCPT + 99 others); Mon, 19 Aug 2019 13:14:38 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46464 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbfHSROh (ORCPT ); Mon, 19 Aug 2019 13:14:37 -0400 Received: by mail-pf1-f195.google.com with SMTP id q139so1519667pfc.13; Mon, 19 Aug 2019 10:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bR7mwEF0w/r77aEvWSCrOS34E2BqLczCk25LMswkdoQ=; b=X9ED/012GHjxgNHbYCrnbaYzs5L41V4HCZmvvZLERBLh4AQj78Ec82Pk6ptcOVjlop 0o9xCEBP5OLWAAeANFSLx5NtdfVnABd/9fEA3vxSFunxagJdGqLZ1OjdapdRuOJSP3fy gQ/eJlKWg+rgWI26kQ/uxxg4DZJ5re1KzRm3al7VP1FpXiR4XQEoTRUU/yyVk5IcEK3v aGbQ47ADYhCSW7zTDPjls1b5j3YZ5IOqbP3TJzbBu//mQdTScHjMXr1kzMVE0RyiKxbR mpimEluhXI5pRVOfK2uj2NtmSS0IF01DeZsaItmlKrJnBsVoRfruDqFOBXLO2gPndW4q d5Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bR7mwEF0w/r77aEvWSCrOS34E2BqLczCk25LMswkdoQ=; b=r0vh2yrAbvCwO+n84tjbPLZpQjmuZnXPvmggWLz4BucxqzwZvgTfEQvgUWZ49YcXHC 8kd4AKNEjHnh0aHcLtneHiwJ6tpiBrE6BENUktDpqSMJLH6TRP5X6l9J5XMUK8UDP5jG v9Ey9Hiqp1Fma7fxkB2YjuIGpn3rJzgg6rBHWKOW3RMLzoq+pIjZe5ucwfA4juHBQTOj 5t0PBB7/x15sv8YsZAwjdW82YKhSD2dg/TzksDWeby0x0rLmaAZ2leGZ50x1EUpQQ83F 6vwAsKzn6HcAXlbUdcdD3dfmVZS6LUJN71TrQadNnndslY88fnoV34KPq9a+o+E4Chaq dq/Q== X-Gm-Message-State: APjAAAUK67+ofa59DyoZYHoIEqF0NvS4VUZqKwBs402usK1+wwXHbrmg flaffvnWmbRuFSWITI0tMBjbqHE5v1dLLw8xN37QyR4T X-Received: by 2002:a17:90a:b908:: with SMTP id p8mr21687303pjr.65.1566234877070; Mon, 19 Aug 2019 10:14:37 -0700 (PDT) MIME-Version: 1.0 References: <20190816163157.25314-1-h.feurstein@gmail.com> <20190816163157.25314-3-h.feurstein@gmail.com> <20190819132733.GE8981@lunn.ch> In-Reply-To: <20190819132733.GE8981@lunn.ch> From: Hubert Feurstein Date: Mon, 19 Aug 2019 19:14:25 +0200 Message-ID: Subject: Re: [PATCH net-next 2/3] net: dsa: mv88e6xxx: extend PTP gettime function to read system clock To: Andrew Lunn Cc: netdev , lkml , Richard Cochran , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, Am Mo., 19. Aug. 2019 um 15:27 Uhr schrieb Andrew Lunn : > > > @@ -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. Since it is already the last write it should be already ok (The mv88e6xxx_smi_indirect_write calls the mv88e6xxx_smi_direct_write which initiates the timestamping). Hubert