From patchwork Thu Oct 21 06:35:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12574011 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A3AFC433F5 for ; Thu, 21 Oct 2021 06:37:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C63EB6128B for ; Thu, 21 Oct 2021 06:37:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C63EB6128B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=drq86iizm8d4sYt81tGZ2CfOaXgGy23FX+4aVhEuB4Q=; b=MHuUKteUxBSKb1 NzteqZjblEJUZqIpYYdX5GpeRcBCF6s3J2ea2dN+udYozFdERt4JVuqcyjaaESK72fLxMpWjwucaT hBBZwlWNVsjCKRXsX2zf0VF7/HoXgwFzbP+bKAAwKxQINzeaQ5vqgZgPsxZqIOm0uoNIj7WlszYRY 9RuKEEPnnvX5GnciF9wx7zS647J9hwEacfvDOxYa35XAGhftRt9ZiDOniX0rOiJAsEKxfvlBBw8u5 Ek0rBq+VwxISXKPfPQN6zYYe53ffHTTNoBtMAmRtZUIB5Txj5pHrw151aC4phfIIIi9sz/6zU5d3V 19JVar2nksP8Y01gStJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdRgc-006XUL-Oo; Thu, 21 Oct 2021 06:36:23 +0000 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdRfN-006Wm6-7U for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 06:35:06 +0000 Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D1B5F3FFF7 for ; Thu, 21 Oct 2021 06:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1634798103; bh=FmJ0rjr2j5+lZ1GrbJW3m6QcUxRmDvBVeUC/Lqmm3nw=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=WP18SOrx0BOOrHMAnutPxgIoglAs7Q5n7IJP0y53xk0WtLc4558xkVBkwFTLhDDLF iI5xyjIRDR7htOcux+KRNo/MMF9Pq9ETFbTQyyhLRPh3MRNPUOVFXYGuWNopzXdUcb uO0Up+0pByPgJbejYYF2UOJWMMAlNr7ldEmVZaTWhMv40DUrj7mV9FsdbNNcbw5uZT Lws3VUT/lHyDrhnHFpcWhka74kZqj5klysqMS6Olg/yyshWZfu0EMJzD0B1wCev9d9 I/CWmcIydhpbTidXeVk3zWs8RMUESU/V3NWZ5wOIk+mASfg34BH81qkLb7VbCV/seN Q4G0tKlPpvUxA== Received: by mail-lf1-f72.google.com with SMTP id z18-20020a0565120c1200b003fd76d7ca21so4206666lfu.13 for ; Wed, 20 Oct 2021 23:35:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=FmJ0rjr2j5+lZ1GrbJW3m6QcUxRmDvBVeUC/Lqmm3nw=; b=YX5u6xOHen3y+FLfPO3eLLQzxU6136gLN/AdhTmYC4z69/0Qzb9llLbOtFKJbrBHOL cFj6r39Ml+OeSxbyol/EOzhmz/z5wnGqf1731Evs30Dlbj+EefaroDoFPee1lNI7arHy aDTSAb8tn4QE4zrNTT5L2wABacb5ZuY5LoXfY6K7K3JV07OnabIudME3nXhOaqyGTXw/ BwfYh4fUGh8rkS2t7ikkRWH6ONJh0iUcgxYc9bxqMpkuiIe4V3ZlfZIpPVKGTBFUPAHQ kPuapbece83TuTyUlwfW7VQ+zg7TjmAx6I2juevpx7enNWPCPkGkBokMsxrK4YAAoL0v /QqQ== X-Gm-Message-State: AOAM5304aAF4BnaWz6q+Fg4nELRR/B26UN1SwOXPcWJmZmgtE7ndYhLa B/r5TpFrTuo4kwQlV/FyDdoZDsEWLK0uoqOYkQQG5pXMDMYJbXjytD+Dwlb0eUelCLtXK5QHNaX UlvfLkS9wnvzdjR1z++pefU/XoE62TO+f+oZLrcHVMmOdGue4ZRE2 X-Received: by 2002:ac2:5210:: with SMTP id a16mr3742223lfl.279.1634798103083; Wed, 20 Oct 2021 23:35:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza9ue2pg33DwBqRkVK1XuyGjUU2kIoIrQ+EuluMtZxge5KEKRL9s/NaBB4FHMl7nmgQnaK6w== X-Received: by 2002:ac2:5210:: with SMTP id a16mr3742195lfl.279.1634798102828; Wed, 20 Oct 2021 23:35:02 -0700 (PDT) Received: from kozik-lap.lan (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id q20sm423805ljp.61.2021.10.20.23.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Oct 2021 23:35:02 -0700 (PDT) From: Krzysztof Kozlowski To: Daniel Lezcano , Thomas Gleixner , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] clocksource/drivers: depend on sub-architecture for Exynos MCT and Samsung PWM Date: Thu, 21 Oct 2021 08:35:00 +0200 Message-Id: <20211021063500.39314-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211020_233505_520681_E65BE6C2 X-CRM114-Status: GOOD ( 14.93 ) 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 The Exynos MCT and Samsung PWM Timer clocksource drivers are not usable on anything else than Samsung Exynos, S3C or S5P SoC platforms. These are integral parts of a SoC. Even though the drivers are not user selectable, still document the hardware architecture explicitly with depends on ARCH_EXYNOS and others. This also serves a purpose of documenting use-case, if someone ever wonders whether to select the driver for his platform. No functional change, because drivers are already selected by the platform described in depends. We follow similar approach also for other SoC-specific drivers. Signed-off-by: Krzysztof Kozlowski --- drivers/clocksource/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 0f5e3983951a..3ff6e1f87246 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -418,12 +418,14 @@ config ATMEL_TCB_CLKSRC config CLKSRC_EXYNOS_MCT bool "Exynos multi core timer driver" if COMPILE_TEST depends on ARM || ARM64 + depends on ARCH_EXYNOS || COMPILE_TEST help Support for Multi Core Timer controller on Exynos SoCs. config CLKSRC_SAMSUNG_PWM bool "PWM timer driver for Samsung S3C, S5P" if COMPILE_TEST depends on HAS_IOMEM + depends on ARCH_EXYNOS || ARCH_S3C24XX || ARCH_S3C64XX || ARCH_S5PV210 || COMPILE_TEST help This is a new clocksource driver for the PWM timer found in Samsung S3C, S5P and Exynos SoCs, replacing an earlier driver