Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1084777rwd; Tue, 13 Jun 2023 04:49:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4uvHhNCh30BOu5V4Hx5vHZ2L1seVtoMlDUzMKNiGfrzBn9it/m1GFgL3Del5/N32BnBocY X-Received: by 2002:aa7:c994:0:b0:518:7954:d082 with SMTP id c20-20020aa7c994000000b005187954d082mr908614edt.10.1686656992602; Tue, 13 Jun 2023 04:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686656992; cv=none; d=google.com; s=arc-20160816; b=MJ8krDSqTvtw0ehnOEURaoT4TsV7B3Mjvaez11mUaQcwwEcsbPP6YwLYjQBSyOIbu1 el5Sml+UQIZCrSVeJXKBsDmwgujfg+XLBd+O90eXcNeZDx5ndVw98AKPa/+qzJMlL1Nj cKQMx2a9u6gAyEjuv9lHsuISrXoWdexjH+P8l3DSS1TGxMZFDDE82ZThprziJjgpy8ZG afKx+RnE+WsdaQopNaEd3JTRKuHOXndym3868A5gtxAluyihYzbCeHLM4oDKFioJzetZ nZ85HR1f/pyapXxG4IKdrCPluVC1nRmxGjzlrP36G+44IWGSjhMryO0QeYB9QkyoBx9m tDHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QZ5oPRloVNzX9T9KKynntJtGk6ElKkFpsIaA01M85ks=; b=yuEIWNdM5LZa3sp2NHFMGzYEkxmgx90D2MQCsSLt1uXn1f8jryTEqK97qb4DeGmJ58 UMjbB/5uvUOQkx3y3IDcu7HvM4p38CL7QsNKZEwh1OALmIXxXt/X8638Pgud+3nqu62s sdZRhZPaTVaWtLK/L/AKgJ9W3jXfIZYtHIHIzt7OVK4/dGR5tOgmwa2gd1nudkogH1iK Fh9QKlBRmYs5lIz9DltfCvCk1Lw+uIt2ay+Krxp0uWwQHxJvSJPsQBNvsnZvXvJMjZZA qDVaWEe+oMH2Kydx9roen8okx3x6f/tWGziyb8ynVkamSNq1l9scGYOlaboW0ml1JTGb SMVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="F0KW/lCe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a17090686d500b00978769bf9f7si5526287ejy.748.2023.06.13.04.49.27; Tue, 13 Jun 2023 04:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="F0KW/lCe"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239438AbjFMLiO (ORCPT + 99 others); Tue, 13 Jun 2023 07:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239273AbjFMLiM (ORCPT ); Tue, 13 Jun 2023 07:38:12 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CC32F7; Tue, 13 Jun 2023 04:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686656290; x=1718192290; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sIZrY5TljSFD0HBXV6l1MOaL4rgBtNOPn6wu8/2Gd+Y=; b=F0KW/lCeplfkxSTqBYEdsFubzQcyAjqKP+W+WTTDU0msZYykyf75LALr hc3ACeoyfblPZp57RuoIyG4IFE8eQWQQ+zFUhiCoc1jVd8Hu/TfBYY9uR fK2E7mXFDQpL5hSgFjitIsthnW2i3bFi6tOtCOAgA/5UnLaGJ3W75dEc7 V1hHDMPmaD22oi3At727lLfpU45Mf/KC6stbVvlnX3nwKoBd52rkaH8R7 hXudNr/nlZc6eiGE9llniZvAgzHwc/urYUkYfAx6cB7SGYl2QtL6CJrPi aqz1A4dPNqb3Pa0G6kNuYcI1BNpi0rmlqprHlnljWrvKP0cMvkbSBEqBB w==; X-IronPort-AV: E=Sophos;i="6.00,239,1681196400"; d="scan'208";a="156740761" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jun 2023 04:38:09 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 13 Jun 2023 04:38:09 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 13 Jun 2023 04:38:09 -0700 Date: Tue, 13 Jun 2023 13:38:08 +0200 From: Horatiu Vultur To: , CC: , , , , , , , Subject: Re: [PATCH net-next v2 0/2] net: micrel: Change how to read TX timestamp Message-ID: <20230613113808.mqasva7fuoxuurab@soft-dev3-1> References: <20230613094526.69532-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <20230613094526.69532-1-horatiu.vultur@microchip.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 06/13/2023 11:45, Horatiu Vultur wrote: Argh... I forgot add Richard to this thread. Therefore CC him now. > Change how to read the timestamp of the received frames. Currently it is > required to read over the MDIO bus each of the timestamps but it is > possible to change to receive the timestamp (the nanosecond part and the > least significant two bits of the second) in the frame. > The first patch makes this change, while the second patch optimized the > read of second part. Because it is not required to read the second part > of the timestmap for each received frame but it is OK to read the second > part twice per second and then cache it. > > v1->v2: > - create a patch series instead of single patch > - add optimization for reading the second part of the received timestamp, > read the second twice per second instead of for each frame > > Horatiu Vultur (2): > net: micrel: Change to receive timestamp in the frame for lan8841 > net: micrel: Schedule work to read seconds for lan8841 > > drivers/net/phy/micrel.c | 272 ++++++++++++++++++++++++++------------- > 1 file changed, 180 insertions(+), 92 deletions(-) > > -- > 2.38.0 > -- /Horatiu