Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2907078rwb; Fri, 9 Dec 2022 07:43:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf609qgTzZcKijHFs1pviXncE1vcxKyoYdy9Zoj/8fqqgLuUwnOwdcSdDyLOoTx6Ox98yGPy X-Received: by 2002:a05:6402:2b95:b0:460:5706:d1fa with SMTP id fj21-20020a0564022b9500b004605706d1famr5013852edb.18.1670600580307; Fri, 09 Dec 2022 07:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670600580; cv=none; d=google.com; s=arc-20160816; b=OH3wdssn4DdJRIIGkt6GgkniLwg58AF1xlHysVS6TsXx086HDQukNdxTkYqwUPuNiN JF27qA+mP2RlftNW0e5lz7sg7VaPHvpPa8a6BCTFfBLOyNnlJFjQ9EDDGbxQyUXB+VPI kPYrFP/0bXnsp0zI/n8PBkAc+PEYuxdOyjSjqob/agVuo4hZHnaOPGYzSmRfY9+blqp7 f3epNzT6m0AACYkdImx9r1+5/DkaZnC7iPBgNYnsdHg+78c4emUNxfn6xFDmwdJLCSLk d/7TpNvgABB5CT8WLCxCu94DeW7RGOUM7T0GoUvkp/2Vvib51Ixfx/MUQHJn+lnmimUz mXhw== 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=zBxZmKASujRGXAQwg4AGB2Rb3A92fAIMeJdn8tudd7s=; b=XL9ZoK3aVcAWJFkn8gT2vAGIFurGq7ygb7jNR7yTIEuyXirkeDJZpyF/1sWoGz3M7h f6MT/pT2UJ9k44mFpnjNa+m1vyIzYKkdAoplenIwaoxPtOUbSUg91a3A2LB8uBhM1ydx wTLjaaBf0SCMlPIfXHWnn/RFpVBcGl2g2Bmeq2rMvAJ5stlDdgCzcSBZEkwsdNU698yY EyJmzHAbh1pJLP9Q0nEXGcc1qpHFQl+ylMsaLWAGd+QN4+pN8VIv7xNmthr5uOcmuxHe Tun5j1yPPsQ1uQS0iawVk8DbPf6OK1+aeE0ObNkemTzsEV65VlG2aeVDuspKAVBiONhp f23g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pAstSTIG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a05640242cc00b0046b13b72f40si2119287edc.609.2022.12.09.07.42.42; Fri, 09 Dec 2022 07:43:00 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=pAstSTIG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230367AbiLIPYj (ORCPT + 75 others); Fri, 9 Dec 2022 10:24:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230350AbiLIPYh (ORCPT ); Fri, 9 Dec 2022 10:24:37 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63478F65; Fri, 9 Dec 2022 07:24:36 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id m18so12265954eji.5; Fri, 09 Dec 2022 07:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zBxZmKASujRGXAQwg4AGB2Rb3A92fAIMeJdn8tudd7s=; b=pAstSTIGSWebBSqcCm9ACftdx6zeG4YpPXLxDYjTRS0te5Z/MyYFFDIGUaKaG2mTDe wEl6eW0QozZI3EQfycUhhcjAlpMxlA6wt9wtEn85VV7Knx0iAabnr7v+dtW3lX7zRtqd khg9YXmO2I0liB/Nvc8msQWYQZYOSpJSxui/3IbjZxjcMKZrEa/27tdnejCgiNF5e9p9 WidQmwISlR+c7Slj5esf9ICvGPTchWZSEajYSJkqkw2lIQVF/W4Qx541uxNqcrFdtIxF 9VTcpDy2yniDaZTMnETtsMgHjBzPo6DmUPBrEAK6rP18kO0ySLOvE5WcGoqki/zaKMPC ABsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zBxZmKASujRGXAQwg4AGB2Rb3A92fAIMeJdn8tudd7s=; b=MQu1q+5jPDm03/uuxWUUSSXAeYMMzqeaFgoGVi9lraj68w4WxVuXvxbETbfT2wmh6N VojCUR9KvjvmmQQwfLB9scg/twRE7wuJNlXGlNAsycJR+TXe0ahZheis2NA/6dqqOjYB OsVKcSXECtNiGKrBOByTiMV9XjMg0kWg80fyaOSnLai8/WzQt8e1IeBk9V4pmmoWOF3q 7STTxQr1aaNTq+DNToRAFVZwaJHCOVak8M9Q6niQWx56x94byndduKZjAQjEi53KvjRP jht68LTxQxU929qBTXaJuAWAIrl1AA9yq1vEH7iTDZ5ywlNuTMGS8eIAfKiOMxoYdLlU A2nw== X-Gm-Message-State: ANoB5pltOw/1VKrdZmu+c6SzVBknV6haOVl5AWucopHlAm+hIwSst2pD QqMvhjwsTziU3u31FIw6rDs= X-Received: by 2002:a17:906:c096:b0:7bf:1090:ded4 with SMTP id f22-20020a170906c09600b007bf1090ded4mr5451643ejz.49.1670599474843; Fri, 09 Dec 2022 07:24:34 -0800 (PST) Received: from skbuf ([188.27.185.190]) by smtp.gmail.com with ESMTPSA id s7-20020a056402520700b0046ac017b007sm764258edd.18.2022.12.09.07.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 07:24:34 -0800 (PST) Date: Fri, 9 Dec 2022 17:24:32 +0200 From: Vladimir Oltean To: Arun Ramadoss Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, Tristram.Ha@microchip.com, richardcochran@gmail.com, ceggers@arri.de Subject: Re: [Patch net-next v3 00/13] net: dsa: microchip: add PTP support for KSZ9563/KSZ8563 and LAN937x Message-ID: <20221209152432.pv2bhygt4mqx3bq7@skbuf> References: <20221209072437.18373-1-arun.ramadoss@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221209072437.18373-1-arun.ramadoss@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Fri, Dec 09, 2022 at 12:54:24PM +0530, Arun Ramadoss wrote: > KSZ9563/KSZ8563 and LAN937x switch are capable for supporting IEEE 1588 PTP > protocol. LAN937x has the same PTP register set similar to KSZ9563, hence the > implementation has been made common for the KSZ switches. KSZ9563 does not > support two step timestamping but LAN937x supports both. Tested the 1step & > 2step p2p timestamping in LAN937x and p2p1step timestamping in KSZ9563. > > This patch series is based on the Christian Eggers PTP support for KSZ9563. > Applied the Christian patch and updated as per the latest refactoring of KSZ > series code. The features added on top are PTP packet Interrupt > implementation based on nested handler, LAN937x two step timestamping and > programmable per_out pins. From my perspective, the DSA API is used correctly and it should be good to go in the next patchset iteration. API usage is about all I tried to concentrate upon. I of course encourage Richard and Christian to point out if there's something out of the ordinary on the protocol side of things.