ia64-mm-convert-to-generic_ioremap.patch removed from -mm tree
The quilt patch titled
Subject: ia64: mm: convert to GENERIC_IOREMAP
has been removed from the -mm tree. Its filename was
ia64-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: ia64: mm: convert to GENERIC_IOREMAP
Date: Thu, 6 Jul 2023 23:45:09 +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.
Here, add wrapper functions ioremap_prot() and iounmap() for ia64's special operation when ioremap() and iounmap().
---
arch/ia64/Kconfig | 1 arch/ia64/include/asm/io.h | 13 ++++------- arch/ia64/mm/ioremap.c | 41 +++++------------------------------ 3 files changed, 12 insertions(+), 43 deletions(-)
arch/ia64/include/asm/io.h renamed from arch/ia64/include/asm/io.h~ia64-mm-convert-to-generic_ioremap +5 -8
@@ -243,15 +243,12 @@ static inline void outsl(unsigned long p# ifdef __KERNEL__ -extern void __iomem *ioremap (unsigned long offset,unsigned long size); +#define _PAGE_IOREMAP pgprot_val(PAGE_KERNEL) +extern void __iomem *ioremap_uc (unsigned long offset,unsigned long size); -extern void iounmap (volatile void __iomem *addr); -static inline void __iomem *ioremap_cache (unsigned long phys_addr,unsigned long size) -{ -return ioremap (phys_addr, size); -} -#define ioremap ioremap -#define ioremap_cache ioremap_cache + +#define ioremap_prot ioremap_prot +#define ioremap_cache ioremap#define ioremap_uc ioremap_uc#define iounmap iounmap
arch/ia64/Kconfig renamed from arch/ia64/Kconfig~ia64-mm-convert-to-generic_ioremap +1 -0
@@ -47,6 +47,7 @@ config IA64 select GENERIC_IRQ_LEGACY select ARCH_HAVE_NMI_SAFE_CMPXCHG select GENERIC_IOMAP + select GENERIC_IOREMAP select GENERIC_SMP_IDLE_THREAD select ARCH_TASK_STRUCT_ON_STACK select ARCH_TASK_STRUCT_ALLOCATOR
arch/ia64/mm/ioremap.c renamed from arch/ia64/mm/ioremap.c~ia64-mm-convert-to-generic_ioremap +6 -35
63 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