Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp927013rdb; Fri, 22 Dec 2023 08:59:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHGcH9JrsnLbcSalhy2cYsc7tTJW/d6DYH/A1yssBCmCSUzGyxIcgOXKFQ05UOY9TTlGm1 X-Received: by 2002:a17:903:1106:b0:1d0:6ffd:6e73 with SMTP id n6-20020a170903110600b001d06ffd6e73mr1211035plh.107.1703264373802; Fri, 22 Dec 2023 08:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703264373; cv=none; d=google.com; s=arc-20160816; b=mf/qcn0ZjFn19ka7rbN6rlq6EO7e9MSd46x3PwwPTFmMPJec4UDMB2k9ZKhxnX9KsY gDPQdb4NwTyCX1+box7ALVqRfs4NrR4mqBQs0pNMznJQAvG0QCM4nxB988vFimdYXLu/ fK9vBTOrvp2xyZzQ0IythwAe+U49TNTgqha+M6BsZRRyJ7RCFormp6NiVCiNUZM6IY/a DJKdJWOU6yMFawbqz8aIuIBAK4p/+pxDzI7lNeLFqcujwzlBDcesvUmDCcO20YydbA4h zZwsdQ14P8xP1lIB7ZlRnQwuvHxj/N956DTer/VA0mYB4hcgICF4VWsHHOhfPZsRNLPV bv3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ACmJFfilUh4/qCtQEksIqI4mnR+VgyeD/6SXnBrVOJA=; fh=vlKrZt2Tc38NAgozsrUb56TDN3Ikr+Vwb5e0mqTsoPI=; b=FtdnXfNnyzLgaGlGxfvrrbihVc5TgX+qtjx7xlsdXpiZ74XTE5DueKEIDwbrBeaGNX 5sfFtdGu1GQxHAo+4YfP3EkxYqquN98cscc4lvH+f6XPxvS+xAmiTdhsyHym4QJ2qNWM nZxHz+qEYzegkR1gcl0V692czrOqPmvHg814PIuP/0meVT+rOf4kJmFQ/wZrxQs9a+0s pGNhqk1JyS+Y+jNcyKLfpCk8l5OvxOlC9cFeIvlE6mvIECWOk30uBR4o0oQavA9yd5bp 1cA190tM0NHS0azVwrDD6DVx1u2BIGUhB05I3Vaa9Tgsljm+j41Ml5EnT9ZlNr949iph uovA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hqj+d6I6; spf=pass (google.com: domain of linux-kernel+bounces-9930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 6-20020a170902c14600b001cfa7f91403si3371149plj.183.2023.12.22.08.59.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 08:59:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hqj+d6I6; spf=pass (google.com: domain of linux-kernel+bounces-9930-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9930-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 77E23285C54 for ; Fri, 22 Dec 2023 16:59:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A900E286B2; Fri, 22 Dec 2023 16:59:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Hqj+d6I6" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (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 BB7DD25542 for ; Fri, 22 Dec 2023 16:59:24 +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-pf1-f171.google.com with SMTP id d2e1a72fcca58-6d93278bfbeso1318331b3a.3 for ; Fri, 22 Dec 2023 08:59:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703264364; x=1703869164; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ACmJFfilUh4/qCtQEksIqI4mnR+VgyeD/6SXnBrVOJA=; b=Hqj+d6I6hmeQNs+9mKrGPEUak4mUwsLFCioJqEdovdl14b+VcLd1MLR1yfZxXmz/TW N2eVAICJHE2PNoNdL2PQvPY4MOMyaQB11h97DHeEopwndk/t2iOfIED5yd1X5JO57D+E bvs4UYT6TC/GDT+0XwNzsUTvG5Q23U+q91Sevb/stG7CVl+PlTUBKUgy+bLTIO9D5JWN WaoyaRNonVdcup5X3PLrQhwYcdBJT/nw8VwrGYZQKU0d+zenARnRozNzr9/HbmwCnHBC zmUTpqTOMQJ20ARa4pHE55nN+x1ggbxbPgco3HdfEy0YW0PUTpad6fqX+27Kmb/Ks30M 0V2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703264364; x=1703869164; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ACmJFfilUh4/qCtQEksIqI4mnR+VgyeD/6SXnBrVOJA=; b=LNNqQVTiH8S4yLtGJsE8thmUkiqwDun6JU1fYlif5v9PxzGY8x5IwpgosO6TscO2+K uN9O+cCutnFoMlxy/2hX4m+6OB7bG0523gkdbR5/mUlNrdF0WC6lF8ErVcL5vCwa4f/m ER9rc+ysckMsmcfFLu78ODfWgTjyLi5h8IUKYUJlHP+gVjfD+zn6NRujqE3f5Q56nRD2 WEnwZK3bAAeFvSkg4sGb2QosJM80zL+jw2lEmdn9RBFm++rkpTSqVTSBgj3WIY7zIPfK tcwxYFgwVdhMPUBGng2sJfc2hTIy4Gy+5d+zMIjV3zb2IMslpbL/4czLO/ob6yNn5cdj pwbQ== X-Gm-Message-State: AOJu0YzjBl0ydWohWvP79TmDORLybw+XFP/dwJZUBZfW8+a7PWFeiwwV xTIwVS1wu6ExjGYFgThkIUWggs2vFpXScXJW3maKAm7oZJ9f9A== X-Received: by 2002:a05:6a00:1822:b0:6d9:5ea7:5ed8 with SMTP id y34-20020a056a00182200b006d95ea75ed8mr1251619pfa.23.1703264364134; Fri, 22 Dec 2023 08:59:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231222165355.1462740-1-peter.griffin@linaro.org> <20231222165355.1462740-3-peter.griffin@linaro.org> In-Reply-To: <20231222165355.1462740-3-peter.griffin@linaro.org> From: Sam Protsenko Date: Fri, 22 Dec 2023 10:59:13 -0600 Message-ID: Subject: Re: [PATCH 2/3] clk: samsung: gs101: register cmu_misc clocks early To: Peter Griffin Cc: 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, 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, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 22, 2023 at 10:54=E2=80=AFAM Peter Griffin wrote: > > 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-gs= 101.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 =3D { > .clk_name =3D "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= [] =3D { > { > .compatible =3D "google,gs101-cmu-apm", > .data =3D &apm_cmu_info, > - }, { > - .compatible =3D "google,gs101-cmu-misc", > - .data =3D &misc_cmu_info, > }, { > }, > }; > -- > 2.43.0.472.g3155946c3a-goog >