Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4279037rwd; Tue, 23 May 2023 05:53:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7efNba0EGfOHiA3TFuk4+/7fGqTJYKLFzEJsbcMf+ClTWyidvmtObEPsr5h9gkXHJnUQh5 X-Received: by 2002:a05:6a20:3d24:b0:10b:a9ca:97ca with SMTP id y36-20020a056a203d2400b0010ba9ca97camr7217828pzi.51.1684846419267; Tue, 23 May 2023 05:53:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684846419; cv=none; d=google.com; s=arc-20160816; b=YZQxPJCWMBscOi7x4KhQvamDfF4nAJk2NJdZ2qWBzMJYLYrgj+d7ICMfmnrwtYCe5C GJlFCX7W8ZF9bPTyjLejlVltSLoZIyjZSn2psVzQqPONZ1x8BEGLUag5nWZxVuqBbckx bHaN1QtbAlgc687PAE6R/xLRiSU8JfAl+rO1CPluBsqOCCboC9TFsaH+GO8bDgJPD35d /X/NcX/CQWWEFJyo5XOA/vKEJfNQDbDZgw2hV3HGuZkQJlIi+kUafTCUW8Osz0Bv+aIo o7BitCoP5nmFS8N2mdAjpO0//ZU0x3EbsfYKJczrNJuy8wLerpAF1qEyB4l8V2hAV5Cv Khlg== 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=6/VrPyQQQacl91J2hYd6SMf8Ci8TKTyXgXBTBksvLyk=; b=b0v/ht/Eauln9mS2oqDrU+3IjORlYA6ReAwW51ACq+us/6gw5Cs6e4k+YQyIiLBgmQ ZPGVJ5tywBXymdti1wxKpahbXZdqeKFK1oPMz1JtJlRiYbJ778akbFaIMJgTLSS+Fr9j RwN3YAta0oviV1pQOLdk+JegDSqT6QhzW4A2eoz6dlUjS9NVF5QxKYbH6w9FQy8S0LGE zhKtSZoD3ObkcC9QWpZprJvZUkOzrP05u/EhHe1PrK4Eg8+e43bLyEaT3RkMJiF9dyHO uX9PWWt06SAYu8SKNnCdlJ8So4tE6nEKHHa7irugfAT3eII7zn1YtyOrtLW9rtdj5TDn toCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wMYqtRxN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f189-20020a6251c6000000b006414f28725bsi3365689pfb.195.2023.05.23.05.53.25; Tue, 23 May 2023 05:53:39 -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=wMYqtRxN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236974AbjEWMrx (ORCPT + 99 others); Tue, 23 May 2023 08:47:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236680AbjEWMrv (ORCPT ); Tue, 23 May 2023 08:47:51 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5AA6DB; Tue, 23 May 2023 05:47:49 -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=6/VrPyQQQacl91J2hYd6SMf8Ci8TKTyXgXBTBksvLyk=; b=wMYqtRxN92vQUJeMN6YMn/VWR4 WaXSKKD+cw/qVfR62SPqLBiIILMbH23nR9zX4TMHuBnemambq56hUHToLCbNitV1PlvOg5J4M7a7L x68Ma58jh5bmO2KMIcHq6eQiqip/k0kHT6HTvnhELUW+OtUU6NvI66hueCuemO0XucE4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1q1R8j-00DgVb-98; Tue, 23 May 2023 14:29:21 +0200 Date: Tue, 23 May 2023 14:29:21 +0200 From: Andrew Lunn To: Parthiban.Veerasooran@microchip.com Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ramon.nordin.rodriguez@ferroamp.se, Horatiu.Vultur@microchip.com, Woojung.Huh@microchip.com, Nicolas.Ferre@microchip.com, Thorsten.Kummermehr@microchip.com Subject: Re: [PATCH net-next v2 6/6] net: phy: microchip_t1s: add support for Microchip LAN865x Rev.B0 PHYs Message-ID: <819531cd-ebd7-4734-b35b-8f8c3d138004@lunn.ch> References: <20230522113331.36872-1-Parthiban.Veerasooran@microchip.com> <20230522113331.36872-7-Parthiban.Veerasooran@microchip.com> <349e1c57-24c6-46fa-b0ab-c6225ae1ece4@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,URIBL_BLOCKED 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 > > Is this doing a read from fuses? Is anything documented about this? > > What the values mean? Would a board designer ever need to use > > different values? Or is this just a case of 'trust us', you don't need > > to understand this magic. > Yes, it is a read from fuses and those values are specific/unique for > each PHY chip. Those values are calculated based on some characteristics > of the PHY chip behavior for optimal performance and they are fused in > the PHY chip for the driver to configure it during the initialization. > This is done in the production/testing stage of the PHY chip. As it is > specific to PHY chip, a board designer doesn't have any influence on > this and need not to worry about it. Unfortunately they can't be > documented anywhere as they are design specific. So simply 'trust us'. O.K. Please consider for future generations that you move all this magic into the PHY firmware. There does not seem to be any reason the OS needs to know about this. Andrew