From patchwork Fri Dec 22 16:53:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 182732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1191220dyi; Fri, 22 Dec 2023 08:55:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IExCI/bhYqeEI7af23mbiTEF6lyqaMiunOmEjB9UvldFZcdr59N20IhpTmmBUzZDt8LFwfD X-Received: by 2002:a17:907:94c1:b0:a25:e06f:528 with SMTP id dn1-20020a17090794c100b00a25e06f0528mr3428808ejc.16.1703264146174; Fri, 22 Dec 2023 08:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703264146; cv=none; d=google.com; s=arc-20160816; b=mFqg8fa2ax6H/kc54l+eehDWmV3X7Y45lSynMKURr63v1GWkybnL/dFRDyeNUd7ZXo 3lsbTJU6QukECtquIIb6IoFIxFh/ZaXYyKl000qTkMhuhh3ZN3pxykxFf7MrliaW5/2v BdAPJk5O9ZGpU/46DtseDI/1lAk4airm0IB6JXnfS2d9f0EPbJvPlk03LocfxCAYCEpk U4ZXObz9UA/gM8eM4VoU3p2hBwBeH7+6Brqz5OvnHDcd9JNySePenuH0H5X6Ao6LpVSI dcAuiGf3yDRlvv8FlbZvz7WM/qr3j0xnL0ssPNEUjLUNH/HrLkFVSLrku5/cWZJbvZIw Hudw== 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=H2C5UTNIPG7mjByyTbN4UUYUJWv2TfPmtilLr3g/kHI=; fh=6b45dExfxgZsEpF0ZAvIv5SlbP904gu80NiJqTxVGXc=; b=GukRYQFLFHy/hG1Y5TNIk9Z0Yu6XXipzup5PEdkZQv4I6uqEvB6EIwNafBCfVzl1Zk +cJPSnadqcG3PypqRi1KE79UqQLZYphIIqCl2ykIDjFJRkTju/2t3X5pKcnp1DNdseBN wR7vN+rmLqAdbk94HvAE4NoUm7CwGbuv/XPze/4mQ6shy9eN46DCrp7af1wY9h8RQRm/ A5RjVt8DN2oBnNI+yNNyT1wkbr5i2k/GFShMya2R91Cr5GumtNYh9Z/6R7TKY8NUBtbX /phuL39vx4vbqqEcVWI0eTxDCpcgwKlNe7gJrdjdSytd7E4R8LP3XFtPCt2AhWUcgwNU bT1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Acal+pj5; spf=pass (google.com: domain of linux-kernel+bounces-9927-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9927-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id wl1-20020a170907310100b00a256eddd7dasi1883989ejb.89.2023.12.22.08.55.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 08:55:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9927-ouuuleilei=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=@linaro.org header.s=google header.b=Acal+pj5; spf=pass (google.com: domain of linux-kernel+bounces-9927-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9927-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 931B41F23E75 for ; Fri, 22 Dec 2023 16:55:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C105D2C842; Fri, 22 Dec 2023 16:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Acal+pj5" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D3025749 for ; Fri, 22 Dec 2023 16:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3364c9ff8e1so1854879f8f.0 for ; Fri, 22 Dec 2023 08:54:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703264084; x=1703868884; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H2C5UTNIPG7mjByyTbN4UUYUJWv2TfPmtilLr3g/kHI=; b=Acal+pj5ltoXwBdUReQyg/omMeFy1jj5Lxj6mhz51FAs58aI/exFwygV2ItRqsW301 6+vfgPxkEiNGz/weGDz4ovq0SwJtKWiCZdpgbfbPxQ2hknWsSXRxE53opZwlvKXqIslY 4uzUrkALoOC9r0syqwfDwN8MW/7D9MnBArpr84cH/Ym27nrSN0UiQrw7woE7QjpEMSaw MPnMGcfaixVYLMM+7WqP+6rKknmcvgoczrvr9NezTvdnYWNjg88PzBw1WLqpps8sL2qU AjJycwSglELdYIpdGDjCi66QXDVxe9UGzPFkbbKJYKAaurM7hF3QM0gEDiSONVSyb6CM Epyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703264084; x=1703868884; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H2C5UTNIPG7mjByyTbN4UUYUJWv2TfPmtilLr3g/kHI=; b=Ll8an0k7FMhYboqy4GfUV5LrFHI4Fz2z9S2ktuqXiLR3xyViXFYdl1AsKSdLgvFYQA jxVCXchua/q5K7UUqmzo36hE6YiTFGyFXYhoG6XYR5UwRTIzmmvI7Re9FRPN0VFcqeFp 8moBLOnkuw6gYc5eAy5kWAfZjXbtyk9FacgXlUKnwwbe2VLqBHPqzckoEGo0WJzplPCD Rgc8M7Lilm2cUzZOsNgsbm/IWi1mMmx2SHvgpCxQTCG/nc8bPnINK2tFh8rOIvCt7e7S gfvvLzzIqEik1yVsB+Dzlw+yEUtJfSIyyfbhlmOl8NjLnHtm7WngeuQ8uTENJnDi0aoq J6SA== X-Gm-Message-State: AOJu0YzwOPl5g7DKnhRYMaKYiEe2Qo/8k6Nu0hTQd9GOJf6hu5vH3k3K rcZr+oS8Gl62IL4HmffIA3/uii76wKprjA== X-Received: by 2002:a05:600c:a686:b0:40d:39ea:1076 with SMTP id ip6-20020a05600ca68600b0040d39ea1076mr900090wmb.93.1703264083920; Fri, 22 Dec 2023 08:54:43 -0800 (PST) Received: from gpeter-l.lan (host-78-151-55-40.as13285.net. [78.151.55.40]) by smtp.gmail.com with ESMTPSA id i15-20020a05600c354f00b0040d378510adsm10138520wmq.1.2023.12.22.08.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 08:54:43 -0800 (PST) From: Peter Griffin To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, daniel.lezcano@linaro.org, tglx@linutronix.de, conor+dt@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, peter.griffin@linaro.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, saravanak@google.com, willmcvicker@google.com Subject: [PATCH 2/3] clk: samsung: gs101: register cmu_misc clocks early Date: Fri, 22 Dec 2023 16:53:54 +0000 Message-ID: <20231222165355.1462740-3-peter.griffin@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231222165355.1462740-1-peter.griffin@linaro.org> References: <20231222165355.1462740-1-peter.griffin@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786001905076394839 X-GMAIL-MSGID: 1786001905076394839 Update cmu_misc so it is registered early, as it contains the gate which clocks the Multi Core Timer (MCT). This clock is required early in boot, otherwise exynos_mct will fail obtaining the clock. Note this wasn't previously an issue as exynos_mct wasn't enabled. Signed-off-by: Peter Griffin Reviewed-by: Sam Protsenko --- drivers/clk/samsung/clk-gs101.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/clk/samsung/clk-gs101.c b/drivers/clk/samsung/clk-gs101.c index 0964bb11657f..590119a25c18 100644 --- a/drivers/clk/samsung/clk-gs101.c +++ b/drivers/clk/samsung/clk-gs101.c @@ -2478,6 +2478,15 @@ static const struct samsung_cmu_info misc_cmu_info __initconst = { .clk_name = "dout_cmu_misc_bus", }; +static void __init gs101_cmu_misc_init(struct device_node *np) +{ + exynos_arm64_register_cmu(NULL, np, &misc_cmu_info); +} + +/* Register CMU_MISC early, as it's needed for MCT timer */ +CLK_OF_DECLARE(gs101_cmu_misc, "google,gs101-cmu-misc", + gs101_cmu_misc_init); + /* ---- platform_driver ----------------------------------------------------- */ static int __init gs101_cmu_probe(struct platform_device *pdev) @@ -2495,9 +2504,6 @@ static const struct of_device_id gs101_cmu_of_match[] = { { .compatible = "google,gs101-cmu-apm", .data = &apm_cmu_info, - }, { - .compatible = "google,gs101-cmu-misc", - .data = &misc_cmu_info, }, { }, };