Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2558686pxp; Sun, 13 Mar 2022 22:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9HaBPrEXfLZfHJ0P+xCYdtJkSDBFoBesoiUJjYxdQd8gOYEybiIHvbiDY3j6hZYzUldHD X-Received: by 2002:a63:db4e:0:b0:377:16e2:f8d with SMTP id x14-20020a63db4e000000b0037716e20f8dmr19319031pgi.110.1647236473295; Sun, 13 Mar 2022 22:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647236473; cv=none; d=google.com; s=arc-20160816; b=DPMZJORac3Y/6SuvauRmHhqBdz02gZtwzklsCv+j1YjiGikr4JaaUYdWpjZi56UfGN CgHXZHVbfjKtVhjTy3TojvHsWQyf7nwa+naYdVxn8H3WjLWWgb273dPwP5P7fDsdFTEl sFEIaGc9S3YxnKQmU/EdDgC6AbIaAxKaMO2ZFR4jT5VTdckjgyWhM5ByYprM7XjT7Bfk sxdmrHq6jh5YJavRK+dbUgULXQtSTqQF0nfXhhMoS20u+VBru39h/L44CYbIxvfco/Pu XAS0M9PcOUiUrWsyHav7YwpngAW+3XUqEbOKmK3F8pJCiZpO4vrr+B2JX6h2yB1azbUj n6VA== 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=QlF97qmxXnAaxgE12EIsUUm/KvgzzcZ7O7tV7qAZxfY=; b=ua4C5AL5YY58UiZmEcyGwaAroS9nlp6Suee9oZb+0dQ1kEeQR8JcLDRgDunzFFnSx8 h+WOL9ADaj7pvaj0RZQuuW/m0rXT180L/FQFOFi1n2Pf7Px8/vjnAvChfXhX27VreAOE 8GfLUfETxE2v/HDNRjNTtCYVDIMIDC/J3gxmkEsud/aVMkSZ7gK7WbD5hQzk3zIocEVg Wlfj0SpXRm8PHdz62SPuupvyt3ZoE5cuZprqcYsivzsOCAMShLUs+6Y85XQoWXSak+R/ OLFwpXg//qkfcKV6kxYMTmuJp3bo0sHNSRUHcxmUHiNm7Stglid5ZzW6sKXZSVMvleIO lwOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qBWFRN1b; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h23-20020a17090aa89700b001bd14e01fcfsi14445079pjq.189.2022.03.13.22.40.58; Sun, 13 Mar 2022 22:41:13 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b=qBWFRN1b; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234720AbiCMPIj (ORCPT + 99 others); Sun, 13 Mar 2022 11:08:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiCMPIh (ORCPT ); Sun, 13 Mar 2022 11:08:37 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F20158E4E; Sun, 13 Mar 2022 08:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=QlF97qmxXnAaxgE12EIsUUm/KvgzzcZ7O7tV7qAZxfY=; b=qBWFRN1bKjm0eLmZBrgEE6IUWG Zws5E9eOk7aVjWwM2JpdWxtZXzNohInlnsBHqXaSmOOYLx/yHHlCNSAZW71ejMo30Zg7DCnJYxjp1 lQAFw3vuskpeZQoRnAui9ywjA97bJOfWfzmbsmluWLL480vSTvXbsU59Bcrg7IhjeWr0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nTPoa-00AdFF-Di; Sun, 13 Mar 2022 16:07:24 +0100 Date: Sun, 13 Mar 2022 16:07:24 +0100 From: Andrew Lunn To: Richard Cochran Cc: Woojung.Huh@microchip.com, linux@armlinux.org.uk, Horatiu.Vultur@microchip.com, Divya.Koppera@microchip.com, netdev@vger.kernel.org, hkallweit1@gmail.com, davem@davemloft.net, kuba@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Madhuri.Sripada@microchip.com, Manohar.Puri@microchip.com Subject: Re: [PATCH net-next 2/3] dt-bindings: net: micrel: Configure latency values and timestamping check for LAN8814 phy Message-ID: References: <20220308221404.bwhujvsdp253t4g3@soft-dev3-1.localhost> <20220309132443.axyzcsc5kyb26su4@soft-dev3-1.localhost> <20220309195252.GB9663@hoboy.vegasvil.org> <20220312024828.GA15046@hoboy.vegasvil.org> <20220313024646.GC29538@hoboy.vegasvil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220313024646.GC29538@hoboy.vegasvil.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Sat, Mar 12, 2022 at 06:46:46PM -0800, Richard Cochran wrote: > On Sat, Mar 12, 2022 at 09:04:31PM +0100, Andrew Lunn wrote: > > Do these get passed to the kernel so the hardware can act on them, or > > are they used purely in userspace by ptp4l? > > user space only. > > > If they has passed to the kernel, could we provide a getter as well as > > a setter, so the defaults hard coded in the driver can be read back? > > Any hard coded defaults in the kernel are a nuisance. > > I mean, do you want user space to say, > > "okay, so I know the correct value is X. But the drivers may offer > random values according to kernel version. So, I'll read out the > driver value Y, and then apply X-Y." > > Insanity. No, i would not suggests that at all. You quoted the man page and it says the default it zero. If there was an API to ask the driver what correction it is doing, and an API to offload the delay correction to the hardware, i would simply remove the comment about the default being zero. If these calls return -EOPNOTSUPP, then user space stays the same, and does actually use a default of 0. If offload is supported, you can show the user the current absolute values, and allow the user to set the absolute values. Anyway, it is clear you don't want the driver doing any correction, so lets stop this discussion. Andrew