Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp238998rdb; Tue, 19 Dec 2023 15:25:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IECx/lIsXiSkhQWbpIX+5+tCeh4exGfOSbT39nQZf3+r4X1pl+CM9ipFenJRFS44gRjo9lo X-Received: by 2002:a50:9506:0:b0:553:7e5:df10 with SMTP id u6-20020a509506000000b0055307e5df10mr2130901eda.22.1703028318862; Tue, 19 Dec 2023 15:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703028318; cv=none; d=google.com; s=arc-20160816; b=fCmN+m/eVUGU2OHp34soe2owDJfJ8qIdI3bfXfGzE0d6sLC78G9C0dKPMUGi5FOdD5 8A5OIGwWxaM5up5WkMse48nW089oA7xwaRj8bJvF4Vwa8ON1MMmwR8cApVdwH7p13T4Q j521gTokAazCc8J+EGIJkrakD2lmvc182pOjFVc1XsyDi9DrPsxp/rnt+nXD4sZeYiW3 hhJy+NlW9cOJxW47OmicmSxZ8CAXJKIx7xWayxLsAPRANB+SOFoh1lpaMegnSv2Z46gu JSscL40gxHiSMhmRfMz2O1bb+s198iXaST/UtNkQ3s/ns9LL/JLcwFk1srQegslknf5b jUzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wwBrG3fMBrqw+66W24krO3ae0UyyaiSGCrBzCY9UDMM=; fh=cHy77tVQJOllXx1Wg8bPfke0uLjFr9bIX9t4NWjGV4E=; b=b47yFdWMdptkHh6yEl7UX+vImUvUxSQUEp4krivTJkKY5huAzVD8SpHdn70IhWZdma 7LOt+GVFFpWx0Id1jDl0YKXW/aurGA5dahtSc7scUi8W4wYqHQP/YlsfpF2TnhE1gvJu Mjwe2GBGBHIw5m3zOxfLp8reXF5mqoFXFoo2omBmfPhdo01vOpLwzGh2LsZAgI5EGopC Dl6E996GP4QD+DMeo1mVGiWNdGLBQMQmzzK7DSiEmuNgWSvpcfYzPjqH5K3stAvcxvrm wSEWn0xtjwRoKPawJle+5OAuYsnaygeMH1905XKYURgQLlAhZooIdxavvIK7pbtzz+yZ SuRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jTcpaZ+Y; spf=pass (google.com: domain of linux-kernel+bounces-6095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id eb11-20020a0564020d0b00b00550daf4aedfsi10175807edb.208.2023.12.19.15.25.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 15:25:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jTcpaZ+Y; spf=pass (google.com: domain of linux-kernel+bounces-6095-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8989E1F260B7 for ; Tue, 19 Dec 2023 23:25:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FA1D3FB32; Tue, 19 Dec 2023 23:24:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="jTcpaZ+Y" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 519E8405C9; Tue, 19 Dec 2023 23:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703028293; bh=0H9ehYGDEdnphMZ75tPLSnXZQxKc5VOLCkI5wkvGLH4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jTcpaZ+Yy3VPneJdShj3+IU+iSxLYi8XUujVYc4ra/3JxhiBBebLwBwOrVOlzmsne ZxsmasMv5n5/0nho2EMtFbRrpRFY5wQKULc/uQMFUjG02YxdHsRNUBkWvXRl7sxnt4 H7gh8GOAU/gZQ3eVRndDjxDNaobU4IfFh5URi/uF4Mr5KjLB9bwkch2lUoS1pyLR0i ++B3gK7cSy0VDRFLfa8clfLipJHWnL+zUv7Eb6skQ1zW0UzdfLrdmvH+oFFH2lullW XHVITRVH2zvhp4Yvb/0o9fA0LP9Dc4Jt4rus5se7OwEgTW+xf/mzwCfz0HldPYDoPG MlaqjEOY7RNRg== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 6293637814AA; Tue, 19 Dec 2023 23:24:53 +0000 (UTC) From: Cristian Ciocaltea To: Emil Renner Berthing , Hal Feng , Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Emil Renner Berthing , Jacob Keller Subject: [PATCH 2/2] clk: starfive: jh7100: Add CLK_SET_RATE_PARENT to gmac_tx Date: Wed, 20 Dec 2023 01:24:40 +0200 Message-ID: <20231219232442.2460166-3-cristian.ciocaltea@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231219232442.2460166-1-cristian.ciocaltea@collabora.com> References: <20231219232442.2460166-1-cristian.ciocaltea@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Emil Renner Berthing This is needed by the dwmac-starfive ethernet driver to set the clock for 1000, 100 and 10 Mbps links properly. Signed-off-by: Emil Renner Berthing Signed-off-by: Cristian Ciocaltea Reviewed-by: Jacob Keller --- drivers/clk/starfive/clk-starfive-jh7100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/starfive/clk-starfive-jh7100.c b/drivers/clk/starfive/clk-starfive-jh7100.c index d3b260c01d5c..03f6f26a15d8 100644 --- a/drivers/clk/starfive/clk-starfive-jh7100.c +++ b/drivers/clk/starfive/clk-starfive-jh7100.c @@ -200,7 +200,7 @@ static const struct jh71x0_clk_data jh7100_clk_data[] __initconst = { JH71X0_GDIV(JH7100_CLK_GMAC_GTX, "gmac_gtxclk", 0, 255, JH7100_CLK_GMAC_ROOT_DIV), JH71X0_GDIV(JH7100_CLK_GMAC_RMII_TX, "gmac_rmii_txclk", 0, 8, JH7100_CLK_GMAC_RMII_REF), JH71X0_GDIV(JH7100_CLK_GMAC_RMII_RX, "gmac_rmii_rxclk", 0, 8, JH7100_CLK_GMAC_RMII_REF), - JH71X0__MUX(JH7100_CLK_GMAC_TX, "gmac_tx", 0, 3, + JH71X0__MUX(JH7100_CLK_GMAC_TX, "gmac_tx", CLK_SET_RATE_PARENT | CLK_SET_RATE_NO_REPARENT, 3, JH7100_CLK_GMAC_GTX, JH7100_CLK_GMAC_TX_INV, JH7100_CLK_GMAC_RMII_TX), -- 2.43.0