Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp371708pxu; Thu, 3 Dec 2020 02:26:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNZz3sUR5gUubzL29BnhxnOmh0CSRm8f0LM19Bu4shJM0p8SvLQWC/9xN9ntVJfnCN/yNm X-Received: by 2002:a17:907:6e9:: with SMTP id yh9mr1864233ejb.131.1606991209102; Thu, 03 Dec 2020 02:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606991209; cv=none; d=google.com; s=arc-20160816; b=ya/45fDP+mS4+ytXIrdqRUFE0kZhVikgfzoL75tkVZNLum4jZoIpY/upu8Co52HA2A gD5MNWG2DulhGCjPqZSHrT2gOVUHLQVQcwb3jfqsRoBkhbJNldYKPBszUKFWLTn09+Ee qZVxUDoTgKq6/CCzma1FDdmQ/C+2hHYJ5WmnkpSSLkEq8jFx0/E616XbiGfbVlbKKtzd XszGrrzTlxosxCh8DZpPZ8hsycDcLWt+4CgZKhB8VzDOPQ4KwM9jGPMgb7MGiiBgV1wE MPRHsmecPXo80fEO4Jb6Fv4kDrmGyYP79J2K5udf5RCxXLcXR2ZknM7Caevapyc0Gtqc yjZQ== 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; bh=mNRO0PaiqFM4o1icATL3vA1vwdvSA2ltsc56gBv/dZg=; b=Qo05oFrh12Zb+7SVTvJ1jH4KQ3WHe2inLtPYHLoJ8ArKipGa+e6rhQgE0RVz4CmIwA dZFeKR8ENjT5qC57HTb5ggrGmGr2N7u9GKDOSoYaLYkoc17INyN1kWZb/SKaBt7QCORH GAGU4o8row4aRnuU80kobypURdZ2sHpAru7o8i374EkorKmZaSJ0U4DE1abhqqG6s0IR ARp2bfvK5iHT2NI2RP1Ac944+iu4hWbLHpx7YqqDqvk18T2MPMYl0NQ2d2f0vSMebOiL He0GUCXadWceOeqC/KTFR+KKuEdKV6eKRrI/k6onOyMg237gb1JkibK+ICMTEqn3pFqs bo5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca4si593902edb.559.2020.12.03.02.26.25; Thu, 03 Dec 2020 02:26:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729111AbgLCKWv (ORCPT + 99 others); Thu, 3 Dec 2020 05:22:51 -0500 Received: from mailout05.rmx.de ([94.199.90.90]:57306 "EHLO mailout05.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbgLCKWu (ORCPT ); Thu, 3 Dec 2020 05:22:50 -0500 Received: from kdin02.retarus.com (kdin02.dmz1.retloc [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout05.rmx.de (Postfix) with ESMTPS id 4CmsMf186Sz9v7j; Thu, 3 Dec 2020 11:22:06 +0100 (CET) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 4CmsMP5Bthz2TTKc; Thu, 3 Dec 2020 11:21:53 +0100 (CET) Received: from N95HX1G2.wgnetz.xx (192.168.54.174) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 3 Dec 2020 11:21:28 +0100 From: Christian Eggers To: Vladimir Oltean , Jakub Kicinski , Andrew Lunn , Richard Cochran , "Rob Herring" CC: Vivien Didelot , "David S . Miller" , Kurt Kanzenbach , George McCollister , Marek Vasut , Helmut Grohne , Paul Barker , Codrin Ciubotariu , Tristram Ha , Woojung Huh , Microchip Linux Driver Support , Christian Eggers , , , Subject: [PATCH net-next v5 0/9] net: dsa: microchip: PTP support for KSZ956x Date: Thu, 3 Dec 2020 11:21:08 +0100 Message-ID: <20201203102117.8995-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.174] X-RMX-ID: 20201203-112153-YQrxQwYcQmRW-0@out02.hq X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [1] http://ww1.microchip.com/downloads/en/DeviceDoc/KSZ9563R-Data-Sheet-DS00002419D.pdf Changes from v4 --> v5 ------------------------ [8/9] - Fix compile error reported by kernel test robot (NET_DSA_TAG_KSZ must select NET_PTP_CLASSIFY) Changes from v3 --> v4 ------------------------ The first 2 patches of v3 have been applied. [ 5/12]-->[ 3/9] - Reviewed-by: Vladimir Oltean [ 6/12]-->[ 4/9] - s/low active/active low/ - Reviewed-by: Vladimir Oltean [ 7/12]-->[ 5/9] - Reviewed-by: Vladimir Oltean [ 9/12]-->[ 7/9] - Remove useless case statement - Reviewed-by: Vladimir Oltean [10/12]-->[ 8/9] - s/low active/active low/ - 80 chars per line - Use IEEE 802.1AS mode (to suppress forwarding of PDelay messages) - Enable/disable hardware timestaping at runtime (port_hwtstamp_set) - Use mutex in port_hwtstamp_set - Don't use port specific struct hwtstamp_config - removed #ifdefs from tag_ksz.c - Set port's tx_latency and rx_latency to 0 - added include/linux/dsa/ksz_common.h to MAINTAINERS [11/12] - removed Patch 11/12 (PPS support) [12/12]-->[ 9/9] - 80 chars per line - reverse christmas tree - Set default pulse width for perout pulse to 50% (max. 125ms) - reject unsupported flags for perout_request Changes from v2 --> v3 ------------------------ Applied all changes requested by Vladimir Oltean. v3 depends on my other netdev patches from 2020-11-18: - net: ptp: introduce common defines for PTP message types - net: dsa: avoid potential use-after-free error [1/11]-->[1/12] - dts: remove " OR BSD-2-Clause" from SPDX-License-Identifier - dts: add "additionalProperties" - dts: remove quotes [2/11]-->[2/12] - Reviewed-by: Vladimir Oltean [3/11] - [Patch removed] (split ksz_common.h) [4/11]-->[3/12] - Reviewed-by: Vladimir Oltean - fixed summary [5/11]-->[4/12] - Use "interrupts-extended" syntax [6/11]-->[5+6/12] - Split up patch - style fixes - use GENMASK() - IRQF_ONESHOT|IRQF_SHARED [7/11]-->[7/12] - Remove "default n" from Kconfig - use mutex in adjfine() - style fixes [8/11]-->[8/12] - Be more verbose in commit message - Rename helper - provide correction instead of t2 - simplify location of UDP header [9/11]-->[9+10/12] - Split up patch - Update commmit messages - don't use OR operator on irqreturn_t - spin_lock_irqsave() --> spin_lock_bh() - style fixes - remove rx_filter cases for DELAY_REQ - use new PTP_MSGTYPE_* defines - inline ksz9477_ptp_should_tstamp() - ksz9477_tstamp_to_clock() --> ksz9477_tstamp_reconstruct() - use shared data in include/linux/net/dsa/ksz_common.h - wait for tx time stamp (within sleepable context) - use boolean for tx time stamp enable - move t2 from correction to tail tag (again) - ... Changes from RFC --> v2 ------------------------ I think that all open questions regarding the RFC version could be solved. dts: referenced to dsa.yaml dts: changed node name to "switch" in example dts: changed "ports" subnode to "ethernet-ports" ksz_common: support "ethernet-ports" subnode tag_ksz: fix usage of correction field (32 bit ns + 16 bit sub-ns) tag_ksz: use cached PTP header from device's .port_txtstamp function tag_ksz: refactored ksz9477_tstamp_to_clock() tag_ksz: pdelay_req: only subtract 2 bit seconds from the correction field tag_ksz: pdelay_resp: don't move (negative) correction to the egress tail tag ptp_classify: add ptp_onestep_p2p_move_t2_to_correction helper ksz9477_ptp: removed E2E support (as suggested by Vladimir) ksz9477_ptp: removed master/slave sysfs attributes (nacked by Richard) ksz9477_ptp: refactored ksz9477_ptp_port_txtstamp ksz9477_ptp: removed "pulse" attribute kconfig: depend on PTP_1588_CLOCK (instead of "imply")