Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp960682rwd; Tue, 13 Jun 2023 02:51:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5s1vyfDhNrTS9IpEJCUv6aM2I0oc1F+yI7YEwRhw0DuKiIiIjj5PEUx8OSgLxdxjqXkGn2 X-Received: by 2002:a17:907:848:b0:96f:a891:36cb with SMTP id ww8-20020a170907084800b0096fa89136cbmr13085268ejb.0.1686649891135; Tue, 13 Jun 2023 02:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686649891; cv=none; d=google.com; s=arc-20160816; b=Xilfn+BE12FmGnXbmvY63z6kYsIZqSBA2ee9QeyrefoaN5dE+h64d+xGhCgwawL20D S1q9raC2rcHNkd+WJwal8cBnDjgFlozcNV9LvxwZl8YBJ8de91NuwG4UjRv5SNFSwLmE I99jxNX6/86x9XqV6Ze83K6tjJh9Jxj8wBFjMLW+M2K5jIkDzwy918TX+Fw0OUAkayAy or2EkGsr6ZJT5KNhSGLm0KGQdsmx/zP/M2UiAisLYV1cVdL5k52Jo5Zs/a9sieG+bkiy jbD2DO7avkewDB+VjhgYEC+qU+mI2kkIFeRI2VpoaBgeG8F7Tn9zFD4mfCu7jCINBjyv ZZTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OHtqzIl2SVl5k/5oTaH4dT7+lL3bjWSJ37lhGvxVd6Y=; b=Ommm063CAxXdlKb7lAfUfhRot23pEdNlLgRW4VO0folwRpxSj1wEV63pgRHzSMjjqf K8YpNckPlKvzxuS5wJ0MyJAThWsB2S4PUkCpTqeNIWxAZ6k7mEnegndNeaO66duaROGg rIrQainz7PmN/UEu0npf7gHnJJ7tP4vi34rdTV0FpbHN7zfpmjkXKiuieZ2uuu1ifvVD mbY6IXO0sZ2MDwP/c10yjmuHTW87GqLUQFmCTm8AyAQNRpCEHAqec5M+e5fsY0zhq8ni RUv71blJw98RHydjlaGjPdYRX7Nx9YvsmDs1hVPDJIxIb01B3IBHEO06O6b5cez3xcwO JCNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="WtD/giN+"; 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 l7-20020a1709066b8700b00977e93c4e56si5298702ejr.684.2023.06.13.02.51.06; Tue, 13 Jun 2023 02:51:31 -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="WtD/giN+"; 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 S240476AbjFMJpo (ORCPT + 99 others); Tue, 13 Jun 2023 05:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240175AbjFMJph (ORCPT ); Tue, 13 Jun 2023 05:45:37 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C2BCE3; Tue, 13 Jun 2023 02:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1686649537; x=1718185537; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=m0hOFgJwzlbpeuCAknODemWN+7nfVAdt6X0ewFU8eLQ=; b=WtD/giN+hbGj2zyhETOWBF8Q6DlAVO8l8ndiPxhbhovptnwWzm99krfO b/zoMDG0Jb/fAdQl0EdzeT+OjmwwzXJl3x16pkZVxdUMSiCTEr0T80gEd rakWgZBmHNY8kvfeC81SySZgkoPKNrcmjnT72KgxpDcHcGI8BbUiN5qES ANgDWrJ0NLP8QWWFewl82YWO+rVWZEgba6Y5s+nWTB5Cu/1KRazJmjTtF W3CjOebdwco/ATPXQsPg6QyvCQLshBvWeIJ6gX2m3jmA0LjNrR9IezLn4 kjdHA/1b3ue8o6odxREUBM8OnxsDpViTlIZLCIblNgHkMLDn3yRbyINer A==; X-IronPort-AV: E=Sophos;i="6.00,239,1681196400"; d="scan'208";a="218210662" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jun 2023 02:45:36 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) 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 02:45:36 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 13 Jun 2023 02:45:34 -0700 From: Horatiu Vultur To: , CC: , , , , , , , Horatiu Vultur Subject: [PATCH net-next v2 0/2] net: micrel: Change how to read TX timestamp Date: Tue, 13 Jun 2023 11:45:24 +0200 Message-ID: <20230613094526.69532-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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