openrisc-mm-convert-to-generic_ioremap.patch removed from -mm tree
The quilt patch titled
Subject: openrisc: mm: convert to GENERIC_IOREMAP
has been removed from the -mm tree. Its filename was
openrisc-mm-convert-to-generic_ioremap.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: openrisc: mm: convert to GENERIC_IOREMAP
Date: Thu, 6 Jul 2023 23:45:10 +0800
By taking GENERIC_IOREMAP method, the generic generic_ioremap_prot(), generic_iounmap(), and their generic wrapper ioremap_prot(), ioremap() and iounmap() are all visible and available to arch. Arch needs to provide wrapper functions to override the generic versions if there's arch specific handling in its ioremap_prot(), ioremap() or iounmap(). This change will simplify implementation by removing duplicated code with generic_ioremap_prot() and generic_iounmap(), and has the equivalent functioality as before.
For openrisc, the current ioremap() and iounmap() are the same as generic version. After taking GENERIC_IOREMAP way, the old ioremap() and iounmap() can be completely removed.
---
arch/openrisc/Kconfig | 1 arch/openrisc/include/asm/io.h | 11 +++--- arch/openrisc/mm/ioremap.c | 49 ------------------------------- 3 files changed, 7 insertions(+), 54 deletions(-)
arch/openrisc/include/asm/io.h renamed from arch/openrisc/include/asm/io.h~openrisc-mm-convert-to-generic_ioremap +6 -5
@@ -15,6 +15,8 @@#define __ASM_OPENRISC_IO_H#include <linux/types.h> +#include <asm/pgalloc.h> +#include <asm/pgtable.h> /* * PCI: We do not use IO ports in OpenRISC
@@ -27,11 +29,10 @@#define PIO_OFFSET 0#define PIO_MASK 0 -#define ioremap ioremap -void __iomem *ioremap (phys_addr_t offset,unsigned long size); - -#define iounmap iounmap -extern void iounmap (volatile void __iomem *addr); +/* +* I/O memory mapping functions. +*/ +#define _PAGE_IOREMAP (pgprot_val(PAGE_KERNEL) | _PAGE_CI)#include <asm-generic/io.h>
arch/openrisc/Kconfig renamed from arch/openrisc/Kconfig~openrisc-mm-convert-to-generic_ioremap +1 -0
@@ -21,6 +21,7 @@ config OPENRISC select GENERIC_IRQ_PROBE select GENERIC_IRQ_SHOW select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select GENERIC_CPU_DEVICES select HAVE_PCI select HAVE_UID16
arch/openrisc/mm/ioremap.c renamed from arch/openrisc/mm/ioremap.c~openrisc-mm-convert-to-generic_ioremap +0 -49
55 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
net-altera-tse-make-altera_tse-depend-on-has_iomem.patch irqchip-al-fic-make-al_fic-depend-on-has_iomem.patch