soc: sifive: shunt ccache driver to drivers/cache
Subsystems (3)
Conor Dooley
maintainerPATCH 1/1 soc: sifive: shunt ccache driver to drivers/cache
From: Conor Dooley <[email protected]>
Move the ccache driver over to drivers/cache, out of the drivers/soc dumping ground, to this new collection point for cache controller drivers.
---
CC: Conor Dooley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: Emil Renner Berthing <[email protected]>
CC: [email protected]
CC: [email protected]
---
MAINTAINERS | 14 +++++++-------
drivers/cache/Kconfig | 8 ++++++++
drivers/cache/Makefile | 3 ++-
drivers/{soc/sifive => cache}/sifive_ccache.c | 0
drivers/soc/Kconfig | 1 -
drivers/soc/Makefile | 1 -
drivers/soc/sifive/Kconfig | 10 ----------
drivers/soc/sifive/Makefile | 3 ---
8 files changed, 17 insertions(+), 23 deletions(-)
rename drivers/{soc/sifive => cache}/sifive_ccache.c (100%)
delete mode 100644 drivers/soc/sifive/Kconfig
delete mode 100644 drivers/soc/sifive/MakefileMAINTAINERS +7 -7
@@ -19580,6 +19580,13 @@ S: Supported N: sifive K: [^@]sifive +SIFIVE CACHE DRIVER +M: Conor Dooley <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +F: drivers/cache/sifive_ccache.c + SIFIVE FU540 SYSTEM-ON-CHIP M: Paul Walmsley <[email protected]> M: Palmer Dabbelt <[email protected]>
@@ -19595,13 +19602,6 @@ S: Maintained F: Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml F: drivers/dma/sf-pdma/ -SIFIVE SOC DRIVERS -M: Conor Dooley <[email protected]> -L: [email protected] -S: Maintained -T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ -F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml -F: drivers/soc/sifive/ SILEAD TOUCHSCREEN DRIVER M: Hans de Goede <[email protected]>
drivers/cache/Kconfig +8 -0
@@ -8,4 +8,12 @@ config AX45MP_L2_CACHE help Support for the L2 cache controller on Andes Technology AX45MP platforms. +if ARCH_SIFIVE || ARCH_STARFIVE + +config SIFIVE_CCACHE + bool "Sifive Composable Cache controller" + help + Support for the composable cache controller on SiFive platforms. + +endif endmenu
drivers/cache/Makefile +2 -1
@@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_AX45MP_L2_CACHE) += ax45mp_cache.o +obj-$(CONFIG_AX45MP_L2_CACHE) += ax45mp_cache.o +obj-$(CONFIG_SIFIVE_CCACHE) += sifive_ccache.o
drivers/cache/sifive_ccache.c renamed from drivers/soc/sifive/sifive_ccache.c +0 -0
drivers/soc/Kconfig +0 -1
@@ -23,7 +23,6 @@ source "drivers/soc/qcom/Kconfig" source "drivers/soc/renesas/Kconfig" source "drivers/soc/rockchip/Kconfig" source "drivers/soc/samsung/Kconfig" -source "drivers/soc/sifive/Kconfig" source "drivers/soc/starfive/Kconfig" source "drivers/soc/sunxi/Kconfig" source "drivers/soc/tegra/Kconfig"
drivers/soc/Makefile +0 -1
@@ -28,7 +28,6 @@ obj-y += qcom/ obj-y += renesas/ obj-y += rockchip/ obj-$(CONFIG_SOC_SAMSUNG) += samsung/ -obj-y += sifive/ obj-y += sunxi/ obj-$(CONFIG_ARCH_TEGRA) += tegra/ obj-y += ti/
drivers/soc/sifive/Kconfig deleted +0 -10
@@ -1,10 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -if ARCH_SIFIVE || ARCH_STARFIVE - -config SIFIVE_CCACHE - bool "Sifive Composable Cache controller" - help - Support for the composable cache controller on SiFive platforms. - -endif
drivers/soc/sifive/Makefile deleted +0 -3
@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-$(CONFIG_SIFIVE_CCACHE) += sifive_ccache.o
Signature · 7 lines
2.39.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Hi Conor,
Quoted 65 lines · Conor Dooley
From: Conor Dooley <[email protected]>
Move the ccache driver over to
drivers/cache, out of thedrivers/socdumping ground, to this new collection point for cache controller drivers.Signed-off-by Conor Dooley <[email protected]>---
CC: Conor Dooley <[email protected]>
CC: Palmer Dabbelt <[email protected]>
CC: Paul Walmsley <[email protected]>
CC: Emil Renner Berthing <[email protected]>
CC: [email protected]
CC: [email protected]--- MAINTAINERS | 14 +++++++------- drivers/cache/Kconfig | 8 ++++++++ drivers/cache/Makefile | 3 ++- drivers/{soc/sifive => cache}/sifive_ccache.c | 0 drivers/soc/Kconfig | 1 - drivers/soc/Makefile | 1 - drivers/soc/sifive/Kconfig | 10 ---------- drivers/soc/sifive/Makefile | 3 --- 8 files changed, 17 insertions(+), 23 deletions(-) rename drivers/{soc/sifive => cache}/sifive_ccache.c (100%) delete mode 100644 drivers/soc/sifive/Kconfig delete mode 100644 drivers/soc/sifive/MakefileMAINTAINERS +7
-7@@ -19580,6 +19580,13 @@ S: Supported N: sifive K: [^@]sifive +SIFIVE CACHE DRIVER +M: Conor Dooley <[email protected]> +L: [email protected] +S: Maintained +F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +F: drivers/cache/sifive_ccache.c + SIFIVE FU540 SYSTEM-ON-CHIP M: Paul Walmsley <[email protected]> M: Palmer Dabbelt <[email protected]>@@ -19595,13 +19602,6 @@ S: Maintained F: Documentation/devicetree/bindings/dma/sifive,fu540-c000-pdma.yaml F: drivers/dma/sf-pdma/ -SIFIVE SOC DRIVERS -M: Conor Dooley <[email protected]> -L: [email protected] -S: Maintained -T: git https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/ -F: Documentation/devicetree/bindings/cache/sifive,ccache0.yaml -F: drivers/soc/sifive/ SILEAD TOUCHSCREEN DRIVER M: Hans de Goede <[email protected]>drivers/cache/Kconfig +0
-0
drivers/cache/Kconfig config AX45MP_L2_CACHE · line 11
Quoted 4 lines
drivers/cache/Kconfig +1
-0@@ -8,4 +8,12 @@ config AX45MP_L2_CACHE help Support for the L2 cache controller on Andes Technology AX45MP platforms. +if ARCH_SIFIVE || ARCH_STARFIVE
Since this is now in a file grouped/sorted by subsystem instead of by platform, maybe it makes sense to convert this to a "depends on" line?
Quoted 27 lines
drivers/cache/Kconfig +7
-0+ +config SIFIVE_CCACHE + bool "Sifive Composable Cache controller" + help + Support for the composable cache controller on SiFive platforms. + +endif endmenudrivers/cache/Makefile +2
-1@@ -1,3 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_AX45MP_L2_CACHE) += ax45mp_cache.o +obj-$(CONFIG_AX45MP_L2_CACHE) += ax45mp_cache.o +obj-$(CONFIG_SIFIVE_CCACHE) += sifive_ccache.odrivers/cache/sifive_ccache.c renamed from drivers/soc/sifive/sifive_ccache.c +0
-0drivers/soc/Kconfig +0
-0
drivers/soc/Kconfig source "drivers/soc/qcom/Kconfig" · line 26
Quoted 5 lines
drivers/soc/Kconfig +0
-1@@ -23,7 +23,6 @@ source "drivers/soc/qcom/Kconfig" source "drivers/soc/renesas/Kconfig" source "drivers/soc/rockchip/Kconfig" source "drivers/soc/samsung/Kconfig" -source "drivers/soc/sifive/Kconfig" source "drivers/soc/starfive/Kconfig"
This file has a conflict and needs to be rebased, but otherwise:
Quoted 39 lines
drivers/soc/Kconfig +0
-0source "drivers/soc/sunxi/Kconfig" source "drivers/soc/tegra/Kconfig"drivers/soc/Makefile +0
-1@@ -28,7 +28,6 @@ obj-y += qcom/ obj-y += renesas/ obj-y += rockchip/ obj-$(CONFIG_SOC_SAMSUNG) += samsung/ -obj-y += sifive/ obj-y += sunxi/ obj-$(CONFIG_ARCH_TEGRA) += tegra/ obj-y += ti/drivers/soc/sifive/Kconfig deleted +0
-10@@ -1,10 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -if ARCH_SIFIVE || ARCH_STARFIVE - -config SIFIVE_CCACHE - bool "Sifive Composable Cache controller" - help - Support for the composable cache controller on SiFive platforms. - -endifdrivers/soc/sifive/Makefile deleted +0
-3@@ -1,3 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 - -obj-$(CONFIG_SIFIVE_CCACHE) += sifive_ccache.o
Conor Dooley
maintainerQuoted 4 lines · Samuel Holland
Quoted 1 line
+if
ARCH_SIFIVE||ARCH_STARFIVESince this is now in a file grouped/sorted by subsystem instead of by platform, maybe it makes sense to convert this to a "depends on" line?
I did that on application, thanks.
Quoted 4 lines
Quoted 2 lines
-source "
drivers/soc/sifive/Kconfig"
source "drivers/soc/starfive/Kconfig"This file has a conflict and needs to be rebased, but otherwise:
am -3 took care of it :)
Quoted 2 lines
Reviewed-by Samuel Holland <[email protected]>Tested-by Samuel Holland <[email protected]>
Cheers,
Conor.
Conor Dooley
maintainerFrom: Conor Dooley <[email protected]>
Quoted 5 lines · Conor Dooley
Move the ccache driver over to
drivers/cache, out of thedrivers/socdumping ground, to this new collection point for cache controller drivers.
[1/1] soc: sifive: shunt ccache driver to drivers/cache
https://git.kernel.org/conor/c/971f128bb2d9
Thanks,
Conor.