Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3474396pxb; Mon, 4 Apr 2022 18:07:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9C5UWN45pQYq+kRsSOlen5Fk3AYl/nKlU70M/wr5qLBkXPrDaVmVkAdwbVFhgnA8LuCiT X-Received: by 2002:a17:90b:3ec3:b0:1c7:24c4:e28f with SMTP id rm3-20020a17090b3ec300b001c724c4e28fmr1167244pjb.191.1649120860321; Mon, 04 Apr 2022 18:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649120860; cv=none; d=google.com; s=arc-20160816; b=O+4v/sXvhZAh53ynlNVU9zPWa1VaQaXS9qPdlScukTPh7vXz1lSHKR0NbJhiMIDqWp 7De5jYxQG5prtGb8/MrMsTfIGoPNPIN9Yn5D6/FespUJtp4rJremki19n8D9PRDleF/B gac79VdQk8AA3Antnr6CxVTcubbXa+6ZrQRXrFkznBkEp0XrMkEDI0M1wbiEMt3+JEzq Rpr2Wenh7r0ngEmxEW+XC0d/v7Xih7i9L37GRWIW+PPxDqXKN1ZurP8UZiUiEiOJOMwt hHndQP4FyryNo8m2G+v0O7ljLhS/Hn6ws/ysdZED/AjmhGLDtLUT2mmm81aW3xyJm4KA lUCQ== 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 :dkim-signature; bh=b2CiO4L5LMsTPjyVGlh+eoZTqAHsqAzbmA0VJTGYz9o=; b=WJmPezA+xxhWwsXag/UAzY6OuuWnLy84VfuSYR7EqtdLYTAVOb9I4Ns5w4TNtBBpe3 qxy30n5T0iTGfNQ9KwP1LyKRBa900sSXh++1cIkC7KjzSfbKvsTUiPR5Br1mAHpQOJYT +9peMEa6hjG1exXgAOX2C8VENUlFeCbWRyHvyRAFu+FpaiuWNJ0XHLbKvIVxTZCwHh44 BDLGJzIzwBL/1EH5pOrEX55WPHMyC+MmSlKWul6fx1kFeXTbw90TYvDC620H7veSELjV /wJY2HXxxlPZG4hLV9DdyT3Cg+NF0RWdjK6jsDXhrC7NejtPvHdXRWitTJv5zYPw6T5o Zw8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=o6BUqL3q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n9-20020a170903110900b00153b2d16443si11929554plh.75.2022.04.04.18.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:07:40 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=o6BUqL3q; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DABF214F102; Mon, 4 Apr 2022 17:06:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355992AbiDAPZy (ORCPT + 99 others); Fri, 1 Apr 2022 11:25:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349377AbiDAOzX (ORCPT ); Fri, 1 Apr 2022 10:55:23 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0308E25E9E; Fri, 1 Apr 2022 07:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=b2CiO4L5LMsTPjyVGlh+eoZTqAHsqAzbmA0VJTGYz9o=; b=o6BUqL3qcos1U48U8sIZkxD6OH YW8IGXnQorGS207zezKy4MeXATgJB4mmk/Z2/4hON2iGNgaBvIQqnMXHOp5QWoaI6LY8FMnh9fnYk UrCSXHdy7RFQ1wxLt9GGZRWC0vKxHO/5LFF6DsGHA4uAI6pEOZkj4Wf/DDXdFu+JAwbq3GIqpKQIl ul9BhwQ7ZuYl1fYhKTqHQKd9NApdCXPq+HwZU/uL8QdWrt1PImgbni7qrmxbrhdjcp4GuKniKZUnB kAZ2Xb12OAQsWelmi73rYWpDAobSOHKhLItkhIxrRseDl3ygyokyVxhGXuT9nwWKU5db1gm9HjvgE Avu36DhA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58082) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1naIUs-0006GG-6f; Fri, 01 Apr 2022 15:43:29 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1naIUo-0000H1-0J; Fri, 01 Apr 2022 15:43:26 +0100 Date: Fri, 1 Apr 2022 15:43:25 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Horatiu Vultur , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, hkallweit1@gmail.com, Divya.Koppera@microchip.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net v2 0/3] net: phy: micrel: Remove latencies support lan8814 Message-ID: References: <20220401110522.3418258-1-horatiu.vultur@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, Apr 01, 2022 at 02:57:46PM +0200, Andrew Lunn wrote: > On Fri, Apr 01, 2022 at 01:05:19PM +0200, Horatiu Vultur wrote: > > Remove the latencies support both from the PHY driver and from the DT. > > The IP already has some default latencies values which can be used to get > > decent results. It has the following values(defined in ns): > > rx-1000mbit: 429 > > tx-1000mbit: 201 > > rx-100mbit: 2346 > > tx-100mbit: 705 > > So one alternative option here is that ptp4l looks at > > /sys/class/net//phydev/phy_id That doesn't work for Clause 45 PHYs, only Clause 22 PHYs. If we want userspace to know which PHY it is, we need a proper interface that exports all the 31 Clause 45 IDs (each mmd's registers 2/3) as well, as well as the Clause 45 package ID (registers 14/15). -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!