From: Christoph Hellwig <hch@lst.de> To: palmer@sifive.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: move sifive_l2_cache.c to drivers/misc Date: Wed, 7 Aug 2019 18:10:09 +0300 [thread overview] Message-ID: <20190807151009.31971-1-hch@lst.de> (raw) The sifive_l2_cache.c is in no way related to RISC-V architecture memory management. It is a little stub driver working around the fact that the EDAC maintainers prefer their drivers to be structured in a certain way that doesn't fit the SiFive SOCs. Move the file to drivers/misc and only build it when the EDAC_SIFIVE config option is selected. Fixes: a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs") Signed-off-by: Christoph Hellwig <hch@lst.de> --- arch/riscv/mm/Makefile | 1 - drivers/misc/Makefile | 1 + {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c (100%) diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index 74055e1d6f21..d2101d0741d4 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -11,6 +11,5 @@ obj-y += extable.o obj-y += ioremap.o obj-y += cacheflush.o obj-y += context.o -obj-y += sifive_l2_cache.o obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index abd8ae249746..886d48301e8e 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -59,3 +59,4 @@ obj-y += cardreader/ obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HABANA_AI) += habanalabs/ obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o +obj-$(CONFIG_EDAC_SIFIVE) += sifive_l2_cache.o diff --git a/arch/riscv/mm/sifive_l2_cache.c b/drivers/misc/sifive_l2_cache.c similarity index 100% rename from arch/riscv/mm/sifive_l2_cache.c rename to drivers/misc/sifive_l2_cache.c -- 2.20.1
WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch@lst.de> To: palmer@sifive.com, arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: move sifive_l2_cache.c to drivers/misc Date: Wed, 7 Aug 2019 18:10:09 +0300 [thread overview] Message-ID: <20190807151009.31971-1-hch@lst.de> (raw) The sifive_l2_cache.c is in no way related to RISC-V architecture memory management. It is a little stub driver working around the fact that the EDAC maintainers prefer their drivers to be structured in a certain way that doesn't fit the SiFive SOCs. Move the file to drivers/misc and only build it when the EDAC_SIFIVE config option is selected. Fixes: a967a289f169 ("RISC-V: sifive_l2_cache: Add L2 cache controller driver for SiFive SoCs") Signed-off-by: Christoph Hellwig <hch@lst.de> --- arch/riscv/mm/Makefile | 1 - drivers/misc/Makefile | 1 + {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {arch/riscv/mm => drivers/misc}/sifive_l2_cache.c (100%) diff --git a/arch/riscv/mm/Makefile b/arch/riscv/mm/Makefile index 74055e1d6f21..d2101d0741d4 100644 --- a/arch/riscv/mm/Makefile +++ b/arch/riscv/mm/Makefile @@ -11,6 +11,5 @@ obj-y += extable.o obj-y += ioremap.o obj-y += cacheflush.o obj-y += context.o -obj-y += sifive_l2_cache.o obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index abd8ae249746..886d48301e8e 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -59,3 +59,4 @@ obj-y += cardreader/ obj-$(CONFIG_PVPANIC) += pvpanic.o obj-$(CONFIG_HABANA_AI) += habanalabs/ obj-$(CONFIG_XILINX_SDFEC) += xilinx_sdfec.o +obj-$(CONFIG_EDAC_SIFIVE) += sifive_l2_cache.o diff --git a/arch/riscv/mm/sifive_l2_cache.c b/drivers/misc/sifive_l2_cache.c similarity index 100% rename from arch/riscv/mm/sifive_l2_cache.c rename to drivers/misc/sifive_l2_cache.c -- 2.20.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv
next reply other threads:[~2019-08-07 15:10 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-08-07 15:10 Christoph Hellwig [this message] 2019-08-07 15:10 ` [PATCH] riscv: move sifive_l2_cache.c to drivers/misc Christoph Hellwig 2019-08-07 15:22 ` Greg KH 2019-08-07 15:22 ` Greg KH 2019-08-07 15:24 ` Christoph Hellwig 2019-08-07 15:24 ` Christoph Hellwig 2019-08-07 15:40 ` Paul Walmsley 2019-08-07 15:40 ` Paul Walmsley 2019-08-08 7:50 ` Christoph Hellwig 2019-08-08 7:50 ` Christoph Hellwig 2019-08-08 8:07 ` Arnd Bergmann 2019-08-08 8:07 ` Arnd Bergmann
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=20190807151009.31971-1-hch@lst.de \ --to=hch@lst.de \ --cc=arnd@arndb.de \ --cc=gregkh@linuxfoundation.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-riscv@lists.infradead.org \ --cc=palmer@sifive.com \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.