Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1498524ybt; Sat, 11 Jul 2020 12:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqzt2k15IRLRm8MERlHVFgTPysPmm4kO5EIUZ+QntyXE2cmEANwzBH/dy5Y9WNLq4USD8y X-Received: by 2002:a05:6402:2212:: with SMTP id cq18mr87734289edb.173.1594494402637; Sat, 11 Jul 2020 12:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594494402; cv=none; d=google.com; s=arc-20160816; b=Rt9WIwGXYlObKflTp5VqR35/9soygvqdWj3R2SZ2sXZLIN/vbJFJRqlm+z2FQxfFmK QxjSzNu9RSu3Mmyyzh4DeAZzzYPuL2pltdHvbvwkPTONyErLQRVaiIZdIOfX87K4d4RX pTazP9zkKR18IKkrHBxPcpsr84DFHdLj+qQynvCbT7EHVc6F6j2fW3lr5YA7dIqOYqzf 1RaJ5CKhAqljSh2Ea+mVgqSKciqBv2vwv7L04Giefjd7MessXtGPF3/u0coIJmhMr3eo NBwK0JI9bWHAeZHcLWM/1sYmrKfRN4WoztFTTR4T0iRtF2sDiFBuZmvmJKAsgqZ1iAlU s3Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=G/5saTAWoiR2yFbTbhFDyL/haR8ouEI5KrJoIc12V/Y=; b=NMbmz2TAadMd8Sa1ETXeQPtI706NJngK1Mi5NcU3jb0tdGhkpV97icHEuLiJvrcHfz WID7aHLSptlHqcYJfBhqclIUMUixYjQ4fEU5GeB7F3kxZGzbT8QOFaKTbqN1qDXL+80Z dnOygR8OzkMezW2e20A6pb9nWo4o4Y4C5+9L+V6Xt+74DGGxE4rFAuP/Mx/a4stfTNe/ FQnrkQW6GmFOFJ2iY1W0UhnB1loHzzHRVjBNjP+IhEfObkjVqC7vytg1O7YJfEeMSE2T 9hm6uefGwXoJH66ZmZxpHZweoYr0dwb+CTmXUkoqBNZeErXBkPru+QSr7SIOxGahdRW7 q/Gg== 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 m3si6557618edv.382.2020.07.11.12.06.05; Sat, 11 Jul 2020 12:06:42 -0700 (PDT) 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 S1728727AbgGKTFt (ORCPT + 99 others); Sat, 11 Jul 2020 15:05:49 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:58756 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgGKTFs (ORCPT ); Sat, 11 Jul 2020 15:05:48 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1juKoh-004eM7-Un; Sat, 11 Jul 2020 21:05:43 +0200 Date: Sat, 11 Jul 2020 21:05:43 +0200 From: Andrew Lunn To: Richard Cochran Cc: Jakub Kicinski , min.li.xe@renesas.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] ptp: add debugfs support for IDT family of timing devices Message-ID: <20200711190543.GT1014141@lunn.ch> References: <1594395685-25199-1-git-send-email-min.li.xe@renesas.com> <20200710135844.58d76d44@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200711134601.GD20443@hoboy> <20200711163806.GM1014141@lunn.ch> <20200711183839.GA26032@hoboy> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200711183839.GA26032@hoboy> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 11, 2020 at 11:38:39AM -0700, Richard Cochran wrote: > On Sat, Jul 11, 2020 at 06:38:06PM +0200, Andrew Lunn wrote: > > But configuration does not belong in debugfs. It would be good to > > explain what is being configured by these parameters, then we can > > maybe make a suggestion about the correct API to use. > > Can we at least enumerate the possibilities? > > - driver specific char device > - private ioctls > - debugfs Hi Richard Since nobody has explained what is actually being configured here, the list is long, and is very likely to contain all sorts of wrong ways of doing it: A new generic parameter added to the PTP API which other PTP clock providers could use. A device tree property. A device tree clock, regulator, ... An ACPI property? A sysfs file. A module parameter A new POSIX clock? An LED class device? A netlink attribute? Andrew