From patchwork Tue Aug 8 08:27:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13345835 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A9475C001B0 for ; Tue, 8 Aug 2023 08:28:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UtLBGOoYOxssim8O1glGJIViiLFdRgTKpX4tgF5eM+g=; b=oKp7vUexka9dXb Bw3gX8n4Ki0Emfx6y/R1xK1Jtkhn595v6Q89XbFKq6v0OShcWXAARnGUVX6rZlAHi0o8aiOEVpwwh uDuDWslxGX+YGS+iK/Zi/u4mswbqAxTfsKFnvhP2bwIluTd+BACXJUpf25fUhhiq4uKLkNGG5/LSd n75kw1Pr4bu7k3MCsTe1eOKDLPBQ/p0XJMH6HRDRmFCuirZNyLipk+7Lr43hY26TOSj9M0jyvlJMa 1m3lSKjJijFO5yz0RgYyQ36OyZ7BW5CJRa3/YgR/GvwCFp/Pf2SAaaES2HT2VR2y7VQo1UvhOBXO6 9txvw/yzKLd68BDkM/hQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTI4S-0020uP-3B; Tue, 08 Aug 2023 08:28:05 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTI4J-0020oU-2z for linux-arm-kernel@lists.infradead.org; Tue, 08 Aug 2023 08:27:57 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3178dd771ceso4645781f8f.2 for ; Tue, 08 Aug 2023 01:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691483272; x=1692088072; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=SMzXqqe28IQY+hzgVA8sdRyW99nsQbJZiTRlRSVrT6A=; b=iUCvBeGQVYc0ejSWkp5I22Q2zOMWrLs2PaL1y3IFerQCAMWvVHZjBF0vjMzQLK9KHh sCdIOAshSL35JKC9UixGjRmypNfHnRhQiXecQK/9lxZRuKrEu1R84KXhbmikA58hnT6X aSFVYdQh5+PSFfrkgucm1B7PVschfRsR0kAX24OblItZ6Vc7qSNqiUkLnGrQCryKYd3z /dqNQrB5tUoTVA5yqXubGFVZtRBbAzE2QHaScnwylnTIY/enseYfmteR0xuvuR7gJqmh ZvBKaYU4VxcJYLT+ax1beYgbAbdkCty/1sgCSN/dJ5LnDjPTy/eXNZ3McNTwK1v/9wqD Q0Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691483272; x=1692088072; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SMzXqqe28IQY+hzgVA8sdRyW99nsQbJZiTRlRSVrT6A=; b=LgUCg4aqhgQSqJYEgY7k+JZobIrUKpHtBVAvrrB5q8RUOEngCeDtPq/+Xrbeh52yJF bVwJVDmrnmJtvtfW003tzFuvDUzrFwPa6A0IU8SRAb+puTE4QK/Bt6VA/NZMPEof+gKW WbwqouRUcwdMT6rOgGiMeo9+r2YrFOEyyo3K2bkMepGya8FQc9QLAjHavcWeAA8DULm8 ImQtVObYpX6Wq/a78OxrLRDLNe10sY66hZxc5vuFkR9svxWQOn3BSHKaPhswyue2+tFm 8nZ5ZWkd4sV8kKG69O5u8DCwQESqAjjUHFSwwkIos7mzc4OiCAovsWTe3oNogMw+4wSN Q1YQ== X-Gm-Message-State: AOJu0Yw24ainm5V4VmXGISu0y3HVwtO3kwiNfGYD2xYwVMh1XZYJp5lW E2ORZvOuWWM3B3UlHqYRZG11qA== X-Google-Smtp-Source: AGHT+IE8JZGO5AJlHB0gVlpfgqATSBJHgAWyKC6QKwkPaljKOyd6RoW2fJ5F/H5/4XrPqd1hvBYD1Q== X-Received: by 2002:a5d:5257:0:b0:314:4a15:e557 with SMTP id k23-20020a5d5257000000b003144a15e557mr8567311wrc.5.1691483272362; Tue, 08 Aug 2023 01:27:52 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id s18-20020adfeb12000000b0031779a6b451sm12861246wrn.83.2023.08.08.01.27.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 01:27:51 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd , Rob Herring , Conor Dooley , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 05/11] clk: samsung: exynos5410: do not define number of clocks in bindings Date: Tue, 8 Aug 2023 10:27:32 +0200 Message-Id: <20230808082738.122804-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808082738.122804-1-krzysztof.kozlowski@linaro.org> References: <20230808082738.122804-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_012755_968341_322ABCAE X-CRM114-Status: GOOD ( 15.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Number of clocks supported by Linux drivers might vary - sometimes we add new clocks, not exposed previously. Therefore this number of clocks should not be in the bindings, because otherwise we should not change it. Define number of clocks per each clock controller inside the driver directly. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alim Akhtar --- drivers/clk/samsung/clk-exynos5410.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/samsung/clk-exynos5410.c b/drivers/clk/samsung/clk-exynos5410.c index d67d67a519a4..2654077211e7 100644 --- a/drivers/clk/samsung/clk-exynos5410.c +++ b/drivers/clk/samsung/clk-exynos5410.c @@ -56,6 +56,9 @@ #define SRC_KFC 0x28200 #define DIV_KFC0 0x28500 +/* NOTE: Must be equal to the last clock ID increased by one */ +#define CLKS_NR 512 + /* list of PLLs */ enum exynos5410_plls { apll, cpll, epll, mpll, @@ -260,7 +263,7 @@ static const struct samsung_cmu_info cmu __initconst = { .nr_div_clks = ARRAY_SIZE(exynos5410_div_clks), .gate_clks = exynos5410_gate_clks, .nr_gate_clks = ARRAY_SIZE(exynos5410_gate_clks), - .nr_clk_ids = CLK_NR_CLKS, + .nr_clk_ids = CLKS_NR, }; /* register exynos5410 clocks */