Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2916422rdh; Mon, 27 Nov 2023 02:05:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyaog/wQkg/l9Dms5HSp7UzOeIQ/I2p91VA3PXMval0yFNaX8MjjZhxbLNCTGkTyQvO9p5 X-Received: by 2002:a05:6a20:54a7:b0:18b:92b3:7c80 with SMTP id i39-20020a056a2054a700b0018b92b37c80mr15872270pzk.22.1701079553889; Mon, 27 Nov 2023 02:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701079553; cv=none; d=google.com; s=arc-20160816; b=Uavq0+FCR0TijDswDRqPI81Ylt3ylTizi/zfxI6qCmRtSISQvBsy5vPswhRtDW4rrv XIchbaANCITF6+dXf8wHcFpk6bF44+BUIcUazSGFtmKg9DLR9grlrGckpwqdf+HRPr7j wyqHIh8y8UmHohsNfTY2J9y67bNVEVZqR4IJGbchsCxQJvQMbz2D7w0MhKhr5EwkFkMB fPVWmQvDrdcL9A9hAsWzrv1MPsNmIETKvpKOscldZC9cd8wRJYKkDUWqYX8bsDcs/LQX JiAn172elBmpvSgBFvoIuF+scfOf4QHj5D1r/JasvQprUHQDID6unSRceYfWQYoZrssr jdvQ== 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=103EYSlv1xYNaveQmHKaeTchRamogG2SM3UwtD/Xhk4=; fh=oUQXlm9N18NE8BciMxTG8yakJePvyLDL7KOQwgHv8WI=; b=KQc3Sa3aJ2CRfeVxv9ALrGItlgHTwHUCG/XiZEpvlcmYnoR9ABzChfNuTPonCRPUyM ikzu1cTZ+KfCrypOQtBuEfi8b937LW1MHYuO4JZqlMDBdBmcYC7UN03B7SAsnF72VCu3 SUI5iz47Y15T3qBxdJEE3o5DawfT6vcysogAoz5/B4mYC5kpTj/OIV7Dt7FQpPSXAN2l rLXTEWfQfDlQpx31ydISM1k5XBPZOxqZVrQfSpwVo/I+mraix9jmoBze866QoF2fiAcq VDE7Qj3E97/sDOkRXKRkznvnDqulSGVP6X24ARWFv0ZkqVCWYBrdT/OgWGMyK1ff4pdW LzTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MOrGQ4fY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id j1-20020a63e741000000b00578b63123desi9613375pgk.789.2023.11.27.02.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 02:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=MOrGQ4fY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4353C807F65C; Mon, 27 Nov 2023 02:05:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232656AbjK0KF1 (ORCPT + 99 others); Mon, 27 Nov 2023 05:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbjK0KFY (ORCPT ); Mon, 27 Nov 2023 05:05:24 -0500 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 A7A32E1; Mon, 27 Nov 2023 02:05:30 -0800 (PST) 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=103EYSlv1xYNaveQmHKaeTchRamogG2SM3UwtD/Xhk4=; b=MOrGQ4fYYTEwLV1aLvyIHfmLI5 r6Dn0aRMbyUAYmvG6GlrC3+61F3Rgo53yGCcSMYT9c1NOrbvdtZ3I9XCudVeqaV7mAtZL3kvUPcFO jUaCAZ3fx3WncjO4cSYIHX/+VLATBMhYxX2c2cgZ0ZWg1mdqTvpNGeY/LJ9GlWVem74fr3y6ioJgu vIzfvf4aP+GjwyJYHOqbBRLbDAHYP+/iN6A3uxlWd72WKbgcfUec0Pei2jn1b6kfzR2F+sz2n48ud j+hqUgRxPslp4db123Q8xE3CpsoBwRxttwodeCzeLSNhtgA2ARwjl6x3nr3PFB9dWvfOP+KPGGQPN JM9UGy+w==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57620) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r7YUQ-0005bg-20; Mon, 27 Nov 2023 10:05:18 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r7YUQ-0001oH-Me; Mon, 27 Nov 2023 10:05:18 +0000 Date: Mon, 27 Nov 2023 10:05:18 +0000 From: "Russell King (Oracle)" To: Sneh Shah Cc: Vinod Koul , Bhupesh Sharma , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@quicinc.com, Andrew Halaney Subject: Re: [PATCH net] net: stmmac: update Rx clk divider for 10M SGMII Message-ID: References: <20231124050818.1221-1-quic_snehshah@quicinc.com> <47c9eb95-ff6a-4432-a7ef-1f3ebf6f593f@quicinc.com> <3bf6f666-b58a-460f-88f5-ad8ec08bfbbc@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bf6f666-b58a-460f-88f5-ad8ec08bfbbc@quicinc.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 02:05:46 -0800 (PST) On Mon, Nov 27, 2023 at 03:17:20PM +0530, Sneh Shah wrote: > On 11/27/2023 2:09 PM, Russell King (Oracle) wrote: > > On Mon, Nov 27, 2023 at 11:25:34AM +0530, Sneh Shah wrote: > >> On 11/24/2023 2:42 PM, Russell King (Oracle) wrote: > >>> The next concern I have is that you're only doing this for SPEED_10. > >>> If it needs to be programmed for SPEED_10 to work, and not any of the > >>> other speeds, isn't this something that can be done at initialisation > >>> time? If it has to be done depending on the speed, then don't you need > >>> to do this for each speed with an appropriate value? > >> > >> This field programming is required only for 10M speed in for SGMII mode. other speeds are agnostic to this field. Hence we are programming it always when SGMII link comes up in 10M mode. init driver data for ethqos is common for sgmii and rgmii. As this fix is specific to SGMII we can't add this to init driver data. > > > > I wasn't referring to adding it to driver data. I was asking whether it > > could be done in the initialisation path. > > > No, IOMACRO block is configured post phylink up regardless of RGMII or SGMII mode. We are not updating them at driver initialization time itself. What reason (in terms of the hardware) requires you to do this every time you select 10M speed? Does the hardware change the value in the register? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!