Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp579337pxu; Thu, 3 Dec 2020 07:40:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwP6sDTYUCtqyWnla0mrDZ2Om0Di1Jmxooh2JrzCYHrseXqDvE5qIqz9+wjXh+oAXlyZUeX X-Received: by 2002:a17:906:7104:: with SMTP id x4mr3075635ejj.141.1607010022196; Thu, 03 Dec 2020 07:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607010022; cv=none; d=google.com; s=arc-20160816; b=leHCp1pKitdoAHdlNKRfLxKbamNyc2M9IiX+lubL66YVMASTy8Lt8WZz5LYGL20JBJ MfgVMMPsWIM+HEx+PB/5fsg1otaBdPeQHNuPUmkREnK37qDLFF5qXMqUBtG9iNDBpTke nsk6OGVo0DJpN5z5j5ZfG3NgsW6V9Kro8eURJqlvY+wvOKgdvpQ9TfQ6+Ev3/AjcgXAB g6Ec7vG2vpDz8zJVFFCDMRWAtOzwZp5dXKL2gbuogFmzjMuY4ei4Nc1PWRBvMKJnL1TF zMqp5hzJ96jIJCzgQTwCJwhN/zOzYgb87MmyHyJq3t8RAI6s8cU3e4pbjzZ5Hbl7B8QX gNNA== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=KDcH5cC4ph5m4jm1I7pJKIwVMsiyCWoxjlDbg8kMl4A=; b=adfcPvvylqZpGcHuUfH4CAzUxZ2cUQZCm21E1r5nwzr91/dZsh3Zver77RFZFfgqvs e/yE3oUIQdDbNhXOfxV54LIa3BWt8BQnAf3iXkSzx1h+1RKQOOTzGWbILl8bL7gIG5k+ 145/FtGIFQOkRdKY6p9TKACmQ0Ls7m7aoY/LMYPZQIE12QtDhusus+DBgb2okDDoEjxS uxLs+agkH7TVchgGm9DmySzn6ATaU8sbaMjStdZR5ThhbAYrFgJ9vDO79h2zhI3WI39b ig7LgV7Sa/jUJTK4boFaxb1sXF6OTKL4piX6eqorZ2HsBB+ZRUTeYsjEivItSNBVWzFB Lyeg== 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 h4si1185767edv.124.2020.12.03.07.39.53; Thu, 03 Dec 2020 07:40:22 -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 S1731003AbgLCPhs (ORCPT + 99 others); Thu, 3 Dec 2020 10:37:48 -0500 Received: from mailout10.rmx.de ([94.199.88.75]:39212 "EHLO mailout10.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgLCPhs (ORCPT ); Thu, 3 Dec 2020 10:37:48 -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 mailout10.rmx.de (Postfix) with ESMTPS id 4Cn0M45Zrwz36Dj; Thu, 3 Dec 2020 16:37:04 +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 4Cn0Lr2Y4cz2TTL1; Thu, 3 Dec 2020 16:36:52 +0100 (CET) Received: from n95hx1g2.localnet (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 16:36:32 +0100 From: Christian Eggers To: Richard Cochran CC: Vladimir Oltean , Jakub Kicinski , Andrew Lunn , Rob Herring , "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 , , , Subject: Re: [PATCH net-next v5 9/9] net: dsa: microchip: ksz9477: add periodic output support Date: Thu, 3 Dec 2020 16:36:26 +0100 Message-ID: <11406377.LS7tM95F4J@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20201203141255.GF4734@hoboy.vegasvil.org> References: <20201203102117.8995-1-ceggers@arri.de> <20201203102117.8995-10-ceggers@arri.de> <20201203141255.GF4734@hoboy.vegasvil.org> 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-163652-xZDbsPjsymKS-0@out02.hq X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, 3 December 2020, 15:12:55 CET, Richard Cochran wrote: > On Thu, Dec 03, 2020 at 11:21:17AM +0100, Christian Eggers wrote: > > The KSZ9563 has a Trigger Output Unit (TOU) which can be used to > > generate periodic signals. > > > > The pulse length can be altered via a device attribute. > > Device tree is the wrong place for that. I meant a device specfic sysfs attribute. /sys/class/ptp/ptp2/device/pulse But this is not true anymore, as I moved the sysfs attribute to a later patch (not submitted yet). > Aren't you using PTP_PEROUT_DUTY_CYCLE anyhow? I also use PTP_PEROUT_DUTY_CYCLE. But this cannot be set via a shell script. The existing "period" sysfs attribute doesn't allow to set the pulse length, so I added a device specific attribute for this. Should ptp_sysfs be extended with a "pulse" attribute with calls enable() with only PTP_PEROUT_DUTY_CYCLE set? > > Thanks, > Richard > > regards Christian