From patchwork Sun Apr 30 17:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shmuel Hazan X-Patchwork-Id: 678069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00EBCC77B60 for ; Sun, 30 Apr 2023 17:07:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbjD3RHP (ORCPT ); Sun, 30 Apr 2023 13:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjD3RHO (ORCPT ); Sun, 30 Apr 2023 13:07:14 -0400 Received: from synguard (unknown [212.29.212.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 195492729; Sun, 30 Apr 2023 10:07:10 -0700 (PDT) Received: from T14.siklu.local (T14.siklu.local [192.168.42.187]) by synguard (Postfix) with ESMTP id 8AEC34E4CD; Sun, 30 Apr 2023 20:07:06 +0300 (IDT) From: Shmuel Hazan To: Russell King Cc: Marcin Wojtas , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , horatiu.vultur@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Shmuel Hazan Subject: [PATCH v4 0/3] net: mvpp2: tai: add extts support Date: Sun, 30 Apr 2023 20:06:53 +0300 Message-Id: <20230430170656.137549-1-shmuel.h@siklu.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch series adds support for PTP event capture on the Aramda 80x0/70x0. This feature is mainly used by tools linux ts2phc(3) in order to synchronize a timestamping unit (like the mvpp2's TAI) and a system DPLL on the same PCB. The patch series includes 3 patches: the second one implements the actual extts function. Changes in v2: * Fixed a deadlock in the poll worker. * Removed tabs from comments. Changes in v3: * Added more explanation about the change in behavior in mvpp22_tai_start. * Explain the reason for choosing 95ms as a polling rate. Changes in v4: * Add additional lock for the polling worker reference count. Shmuel Hazan (3): net: mvpp2: tai: add refcount for ptp worker net: mvpp2: tai: add extts support dt-bindings: net: marvell,pp2: add extts docs .../devicetree/bindings/net/marvell,pp2.yaml | 18 + .../net/ethernet/marvell/mvpp2/mvpp2_tai.c | 332 ++++++++++++++++-- 2 files changed, 316 insertions(+), 34 deletions(-) base-commit: 3e7bb4f2461710b70887704af7f175383251088e Reviewed-by: Alexander Duyck