From patchwork Fri Jun 21 15:21:09 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Philipp Zabel
X-Patchwork-Id: 13707821
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 3CC53C2BD05
for ;
Fri, 21 Jun 2024 16:33:18 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help
:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:
Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender
:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;
bh=U75QvJ14bwpzc2bhzyGX9cTTMuxPHFonyGzoD2qCm+c=; b=K4A7jHM8ZHKvWo5dfWl1oKwHTH
ZKyHWagWQo1FwU4ahRDf+MbtEffoUPH2prFX8ZQlNOUu8+AW+tyTo94kHMxq/6L7O55/NxsuaC44B
RWTObRBjfP5Xb7lApFCBDG93DIlNgf4gKN0nwZv1OffNV7l50WuPmF759/TO25luOfuWjKOEvS1oh
ZGq49s3wcqPT2z1RdUE1q6+Qb6K9xMH6ZJRChk3SNHvhCrAZH3tjYTbE3BaKP0Bh33qQWbtnk6Lo7
c1JnxqtI4seHFrWShMeNAOXrHHsWbnDUfvdRvESL4Igy1My+zlNkbBtUvoXyK5KlIZeYAVMjX2QNm
73enaa/g==;
Received: from localhost ([::1] helo=bombadil.infradead.org)
by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKhC7-00000009vAd-3ZQ4;
Fri, 21 Jun 2024 16:32:59 +0000
Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05])
by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKg4l-00000009iSR-3n6S
for linux-arm-kernel@bombadil.infradead.org;
Fri, 21 Jun 2024 15:21:19 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=infradead.org; s=desiato.20200630; h=Cc:To:Message-Id:
Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender:
Reply-To:Content-ID:Content-Description:In-Reply-To:References;
bh=U75QvJ14bwpzc2bhzyGX9cTTMuxPHFonyGzoD2qCm+c=; b=BxZGyShohM61OH4cg90rU8CO1d
wcrfDOXaEMmJMYz49zs775HcDA2Ey6kfDpTSKuzKjUG5AMu5beEysmcifaiNArxw2uChs2ao4eSw4
4g8o5idzp7nW/uzDY10Gayjoy7+OdipOEqYA9PsOBLguntp3PEvpU2KDW0Y21Si9tf9BPaPosVv7m
LqUBzdPsvP5+IIfn/qrA/px1qM4KOLRbY+FfqPt21jodEV97yAgRBW7zbIX89eN/qPD6H+zxM2dJB
alWQv5IwyeafqaaIoozoc7/fY4TSM4UnyEKnKPoAG3N2hSgjOCqDy9xtQzneYvZXmT9sVRgvCQoEa
I0P0CUpA==;
Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104])
by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux))
id 1sKg4i-00000007ix3-0igH
for linux-arm-kernel@lists.infradead.org;
Fri, 21 Jun 2024 15:21:18 +0000
Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54])
by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92)
(envelope-from )
id 1sKg4f-0007eK-CK; Fri, 21 Jun 2024 17:21:13 +0200
From: Philipp Zabel
Date: Fri, 21 Jun 2024 17:21:09 +0200
Subject: [PATCH] reset: sti: allow building under COMPILE_TEST
MIME-Version: 1.0
Message-Id: <20240621-reset-compile-sti-v1-1-b7a66ce29911@pengutronix.de>
X-B4-Tracking: v=1; b=H4sIAGSadWYC/x3MMQqAMAxA0atIZgO1SgevIg6SRg1oK42IUHp3i
+Mb/s+gnIQVxiZD4kdUYqjo2gZoX8LGKL4arLGDcbbDxMo3UjwvORj1FqTFkfXeG3I91O5KvMr
7P6e5lA9hQLaqYwAAAA==
To: Patrice Chotard
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
kernel@pengutronix.de, Philipp Zabel
X-Mailer: b4 0.14-dev
X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::54
X-SA-Exim-Mail-From: p.zabel@pengutronix.de
X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de);
SAEximRunCond expanded to false
X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3
X-CRM114-CacheID: sfid-20240621_162116_504000_5227FBCA
X-CRM114-Status: UNSURE ( 9.63 )
X-CRM114-Notice: Please train this message.
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 STIH407 reset driver can be compiled without ARCH_STI being
enabled. Allow it to be built under COMPILE_TEST.
Signed-off-by: Philipp Zabel
Reviewed-by: Patrice Chotard
---
drivers/reset/Makefile | 2 +-
drivers/reset/sti/Kconfig | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
change-id: 20240621-reset-compile-sti-ca6c2ddd0c63
Best regards,
diff --git a/drivers/reset/Makefile b/drivers/reset/Makefile
index fd8b49fa46fc..ff716f9afc84 100644
--- a/drivers/reset/Makefile
+++ b/drivers/reset/Makefile
@@ -2,7 +2,7 @@
obj-y += core.o
obj-y += hisilicon/
obj-y += starfive/
-obj-$(CONFIG_ARCH_STI) += sti/
+obj-y += sti/
obj-$(CONFIG_ARCH_TEGRA) += tegra/
obj-$(CONFIG_RESET_A10SR) += reset-a10sr.o
obj-$(CONFIG_RESET_ATH79) += reset-ath79.o
diff --git a/drivers/reset/sti/Kconfig b/drivers/reset/sti/Kconfig
index a2622e146b8b..0b599f7cf6ed 100644
--- a/drivers/reset/sti/Kconfig
+++ b/drivers/reset/sti/Kconfig
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
-if ARCH_STI
+if ARCH_STI || COMPILE_TEST
config STIH407_RESET
- bool
+ bool "STIH407 Reset Driver" if COMPILE_TEST
endif