From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 3/6] treewide: retire CONFIG_HAS_CACHE
Date: Thu, 13 Mar 2025 08:54:13 +0100 [thread overview]
Message-ID: <20250313075416.3202194-3-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250313075416.3202194-1-a.fatoum@pengutronix.de>
The option serves no purpose any longer as all cache maintenance is
hidden behind generic APIs like the DMA streaming API.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2:
- no change
---
arch/arm/Kconfig | 1 -
arch/kvx/Kconfig | 1 -
arch/openrisc/Kconfig | 1 -
arch/powerpc/Kconfig | 1 -
common/Kconfig | 8 --------
drivers/net/Kconfig | 1 -
6 files changed, 13 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 3d8f2eeca713..f5f9f3828782 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -3,7 +3,6 @@
config ARM
bool
select HAS_KALLSYMS
- select HAS_CACHE
select HAVE_IMAGE_COMPRESSION
select HAVE_ARCH_KASAN
select ARCH_HAS_SJLJ
diff --git a/arch/kvx/Kconfig b/arch/kvx/Kconfig
index 2e6432f897d8..5f325ca28358 100644
--- a/arch/kvx/Kconfig
+++ b/arch/kvx/Kconfig
@@ -14,7 +14,6 @@ config KVX
select FITIMAGE
select GENERIC_FIND_NEXT_BIT
select ARCH_HAS_SJLJ
- select HAS_CACHE
select HAS_DMA
select LIBFDT
select MFD_SYSCON
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index 6b64b299b391..d79743962a42 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc/Kconfig
@@ -3,7 +3,6 @@
config OPENRISC
bool
select OFTREE
- select HAS_CACHE
select HAVE_CONFIGURABLE_MEMORY_LAYOUT
select GENERIC_FIND_NEXT_BIT
select ARCH_HAS_SJLJ
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 6346594173ac..4e282bc3ac80 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -5,7 +5,6 @@ config PPC
select HAVE_CONFIGURABLE_TEXT_BASE
select HAS_KALLSYMS
select HAS_MODULES
- select HAS_CACHE
select GENERIC_FIND_NEXT_BIT
select OFTREE
select ARCH_HAS_SJLJ
diff --git a/common/Kconfig b/common/Kconfig
index 8a051a29e76c..6e5fba33ea4a 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -27,14 +27,6 @@ config HAS_KALLSYMS
config HAS_MODULES
bool
-config HAS_CACHE
- bool
- help
- This allows you to run "make ARCH=sandbox allyesconfig".
-
- Drivers that depend on a cache implementation can depend on this
- config, so that you don't get a compilation error.
-
config HAS_DMA
bool
help
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index 5c436a05ccc5..7cad80c0a4b6 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -188,7 +188,6 @@ config DRIVER_NET_ENC28J60_WRITEVERIFY
config DRIVER_NET_ETHOC
bool "OpenCores ethernet MAC driver"
depends on OPENRISC
- depends on HAS_CACHE
select PHYLIB
help
This option enables support for the OpenCores 10/100 Mbps
--
2.39.5
next prev parent reply other threads:[~2025-03-13 7:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-13 7:54 [PATCH v2 1/6] arch: move promptless options to end of Kconfig file Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 2/6] RISC-V: rename HAS_CACHE to RISCV_ICACHE Ahmad Fatoum
2025-03-13 7:54 ` Ahmad Fatoum [this message]
2025-03-13 7:54 ` [PATCH v2 4/6] arch: move hidden arch options to arch/Kconfig Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 5/6] arch: move PHYS_ADDR_T_64BIT definition " Ahmad Fatoum
2025-03-13 7:54 ` [PATCH v2 6/6] x86: move CONFIG_PHYS_ADDR_T_64BIT setting into Kconfig Ahmad Fatoum
2025-03-14 16:08 ` [PATCH v2 1/6] arch: move promptless options to end of Kconfig file Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250313075416.3202194-3-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox