[PATCH 2/2] Hexagon: Make pfn accessors statics inlines

2023-11-15 Thread Linus Walleij
of the architectures page.h file. Acked-by: Brian Cain Signed-off-by: Linus Walleij --- arch/hexagon/include/asm/page.h | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/hexagon/include/asm/page.h b/arch/hexagon/include/asm/page.h index 9c03b9965f07

[PATCH 0/2] arch: Virt to phys to static inlines

2023-11-15 Thread Linus Walleij
they get in. Signed-off-by: Linus Walleij --- Linus Walleij (2): ARC: mm: Make virt_to_pfn() a static inline Hexagon: Make pfn accessors statics inlines arch/arc/include/asm/page.h | 21 - arch/arc/include/asm/pgtable-levels.h | 2 +- arch/hexagon/include

[PATCH 1/2] ARC: mm: Make virt_to_pfn() a static inline

2023-11-15 Thread Linus Walleij
) as arguments without warnings. In order to do this we move the virt_to_phys() and below the definition of the __pa() and __va() macros so it compiles. The macro version was also able to do recursive symbol resolution. Signed-off-by: Linus Walleij --- arch/arc/include/asm/page.h | 21

[PATCH] ARC: mm: Make virt_to_pfn() a static inline

2023-09-14 Thread Linus Walleij
) as arguments without warnings. In order to do this we move the virt_to_phys() and below the definition of the __pa() and __va() macros so it compiles. The macro version was also able to do recursive symbol resolution. Signed-off-by: Linus Walleij --- arch/arc/include/asm/page.h | 21

[PATCH v3 2/2] csky: Make pfn accessors static inlines

2023-08-10 Thread Linus Walleij
-by: Guo Ren Signed-off-by: Linus Walleij --- arch/csky/include/asm/page.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h index b23e3006a9e0..4a0502e324a6 100644 --- a/arch/csky/include/asm/page.h +++ b/arch

[PATCH v3 0/2] csky: Convert memory accessors to static inlines

2023-08-10 Thread Linus Walleij
This converts the virt_to_pfn and pfn_to_virt macros into static inlines so we get proper type checking on the pointers passed in. Signed-off-by: Linus Walleij --- Changes in v3: - Do not return const void * from pfn_to_virt(), return void * so we don't case a mess. - Link to v2: https

[PATCH v3 1/2] csky: Cast argument to virt_to_pfn() to (void *)

2023-08-10 Thread Linus Walleij
The virt_to_pfn() function takes a (void *) as argument, fix this up to avoid exploiting the unintended polymorphism of virt_to_pfn. Acked-by: Guo Ren Signed-off-by: Linus Walleij --- arch/arc/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc

[PATCH v2 2/2] csky: Make pfn accessors static inlines

2023-08-09 Thread Linus Walleij
-by: Guo Ren Signed-off-by: Linus Walleij --- arch/csky/include/asm/page.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h index b23e3006a9e0..57b3f106ae77 100644 --- a/arch/csky/include/asm/page.h +++ b/arch

[PATCH v2 0/2] csky: Convert memory accessors to static inlines

2023-08-09 Thread Linus Walleij
This converts the virt_to_pfn and pfn_to_virt macros into static inlines so we get proper type checking on the pointers passed in. Signed-off-by: Linus Walleij --- Changes in v2: - Fix compilation error on pfn_to_virt() by more casting. - Return const void * rather than just void * from

[PATCH v2 1/2] csky: Cast argument to virt_to_pfn() to (void *)

2023-08-09 Thread Linus Walleij
The virt_to_pfn() function takes a (void *) as argument, fix this up to avoid exploiting the unintended polymorphism of virt_to_pfn. Acked-by: Guo Ren Signed-off-by: Linus Walleij --- arch/arc/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc

[PATCH 0/2] csky: Convert memory accessors to static inlines

2023-08-08 Thread Linus Walleij
This converts the virt_to_pfn and pfn_to_virt macros into static inlines so we get proper type checking on the pointers passed in. Signed-off-by: Linus Walleij --- Linus Walleij (2): csky: Cast argument to virt_to_pfn() to (void *) csky: Make pfn accessors static inlines arch/arc

[PATCH 2/2] csky: Make pfn accessors static inlines

2023-08-08 Thread Linus Walleij
-by: Linus Walleij --- arch/csky/include/asm/page.h | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/csky/include/asm/page.h b/arch/csky/include/asm/page.h index b23e3006a9e0..80da7e96a8fa 100644 --- a/arch/csky/include/asm/page.h +++ b/arch/csky/include/asm

[PATCH 1/2] csky: Cast argument to virt_to_pfn() to (void *)

2023-08-08 Thread Linus Walleij
The virt_to_pfn() function takes a (void *) as argument, fix this up to avoid exploiting the unintended polymorphism of virt_to_pfn. Signed-off-by: Linus Walleij --- arch/arc/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/include/asm/page.h b

[PATCH v3 04/12] riscv: mm: init: Pass a pointer to virt_to_page()

2023-05-23 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this in the RISCV mm init code, so we can implement a strongly typed virt_to_pfn(). Reviewed-by: Alexandre Ghiti Signed-off-by: Linus Walleij --- arch/riscv/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 03/12] ARC: init: Pass a pointer to virt_to_pfn() in init

2023-05-23 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix up the offending call in arch/arc with an explicit cast. Signed-off-by: Linus Walleij --- arch/arc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index

[PATCH v3 02/12] m68k: Pass a pointer to virt_to_pfn() virt_to_page()

2023-05-23 Thread Linus Walleij
-by: Geert Uytterhoeven Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Fix up versioning. This is v3. - Let Coldfire __pte_page() return a (void *) instead of __va - Delete Coldfire pte_pagenr() which was using unsigned long semantics from __pte_page() - Drop ill-advised change to Coldf

[PATCH v3 09/12] asm-generic/page.h: Make pfn accessors static inlines

2023-05-23 Thread Linus Walleij
) as arguments without warnings. For symmetry we do the same change for pfn_to_virt. Immediately define virt_to_pfn and pfn_to_virt to the static inline after the static inline since this style of defining functions is used for the generic helpers. Signed-off-by: Linus Walleij --- include/asm

[PATCH v3 10/12] ARM: mm: Make virt_to_pfn() a static inline

2023-05-23 Thread Linus Walleij
it impossible to include explicitly. Link: https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/ Signed-off-by: Linus Walleij --- Russell: the vs inclusion really gave me headaches, if you have a better idea how to do it I'm all ears! --- arch/arm/common

[PATCH v3 11/12] arm64: memory: Make virt_to_pfn() a static inline

2023-05-23 Thread Linus Walleij
) as arguments without warnings. Since arm64 is using to provide __phys_to_pfn() we need to move the inclusion of that header up, so we can resolve the static inline at compile time. Acked-by: Catalin Marinas Signed-off-by: Linus Walleij --- arch/arm64/include/asm/memory.h | 9 - 1 file

[PATCH v3 12/12] m68k/mm: Make pfn accessors static inlines

2023-05-23 Thread Linus Walleij
) as arguments without warnings. For symmetry, do the same with pfn_to_virt(). Signed-off-by: Linus Walleij --- arch/m68k/include/asm/page_mm.h | 11 +-- arch/m68k/include/asm/page_no.h | 11 +-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/m68k/include/asm

[PATCH v3 06/12] cifs: Pass a pointer to virt_to_page() in cifsglob

2023-05-23 Thread Linus Walleij
Talpey Signed-off-by: Linus Walleij --- fs/cifs/cifsglob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 414685c5d530..3d29a4bbbc40 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -2218,7 +2218,7 @@ static inline void

[PATCH v3 08/12] arm64: vdso: Pass (void *) to virt_to_page()

2023-05-23 Thread Linus Walleij
Marinas Signed-off-by: Linus Walleij --- arch/arm64/kernel/vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 0119dc91abb5..d9e1355730ef 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -288,7

[PATCH v3 07/12] netfs: Pass a pointer to virt_to_page()

2023-05-23 Thread Linus Walleij
-by: Linus Walleij --- fs/netfs/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c index 8a4c86687429..0431ec4a7298 100644 --- a/fs/netfs/iterator.c +++ b/fs/netfs/iterator.c @@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg

[PATCH v3 05/12] cifs: Pass a pointer to virt_to_page()

2023-05-23 Thread Linus Walleij
Talpey Signed-off-by: Linus Walleij --- fs/cifs/smbdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 0362ebd4fa0f..964f07375a8d 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -2500,7 +2500,7 @@ static ssize_t

[PATCH v3 00/12] arch: Make virt_to_pfn into a static inline

2023-05-23 Thread Linus Walleij
trimmed it down to the mailing lists since these people certainly have received the patches before. Signed-off-by: Linus Walleij --- Changes in v3: - Fix up the Coldfire changes in accordance with Geert's feedback. - Link to v2: https://lore.kernel.org/r/20230503-virt-to-pfn-v6-4-rc1-v2-0

[PATCH v3 01/12] fs/proc/kcore.c: Pass a pointer to virt_addr_valid()

2023-05-23 Thread Linus Walleij
The virt_addr_valid() should be passed a pointer, the current code passing a long unsigned int is just exploiting the unintentional polymorphism of these calls being implemented as preprocessor macros. Signed-off-by: Linus Walleij --- fs/proc/kcore.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 12/12] m68k/mm: Make pfn accessors static inlines

2023-05-22 Thread Linus Walleij
) as arguments without warnings. For symmetry, do the same with pfn_to_virt(). Signed-off-by: Linus Walleij --- arch/m68k/include/asm/page_mm.h | 11 +-- arch/m68k/include/asm/page_no.h | 11 +-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/m68k/include/asm

[PATCH v2 07/12] netfs: Pass a pointer to virt_to_page()

2023-05-22 Thread Linus Walleij
-by: Linus Walleij --- fs/netfs/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c index 8a4c86687429..0431ec4a7298 100644 --- a/fs/netfs/iterator.c +++ b/fs/netfs/iterator.c @@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg

[PATCH v2 04/12] riscv: mm: init: Pass a pointer to virt_to_page()

2023-05-22 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this in the RISCV mm init code, so we can implement a strongly typed virt_to_pfn(). Reviewed-by: Alexandre Ghiti Signed-off-by: Linus Walleij --- arch/riscv/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 06/12] cifs: Pass a pointer to virt_to_page() in cifsglob

2023-05-22 Thread Linus Walleij
Talpey Signed-off-by: Linus Walleij --- fs/cifs/cifsglob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 414685c5d530..3d29a4bbbc40 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -2218,7 +2218,7 @@ static inline void

[PATCH v2 08/12] arm64: vdso: Pass (void *) to virt_to_page()

2023-05-22 Thread Linus Walleij
Marinas Signed-off-by: Linus Walleij --- arch/arm64/kernel/vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 0119dc91abb5..d9e1355730ef 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -288,7

[PATCH v2 11/12] arm64: memory: Make virt_to_pfn() a static inline

2023-05-22 Thread Linus Walleij
) as arguments without warnings. Since arm64 is using to provide __phys_to_pfn() we need to move the inclusion of that header up, so we can resolve the static inline at compile time. Acked-by: Catalin Marinas Signed-off-by: Linus Walleij --- arch/arm64/include/asm/memory.h | 9 - 1 file

[PATCH v2 09/12] asm-generic/page.h: Make pfn accessors static inlines

2023-05-22 Thread Linus Walleij
) as arguments without warnings. For symmetry we do the same change for pfn_to_virt. Immediately define virt_to_pfn and pfn_to_virt to the static inline after the static inline since this style of defining functions is used for the generic helpers. Signed-off-by: Linus Walleij --- include/asm

[PATCH v2 10/12] ARM: mm: Make virt_to_pfn() a static inline

2023-05-22 Thread Linus Walleij
it impossible to include explicitly. Link: https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/ Signed-off-by: Linus Walleij --- Russell: the vs inclusion really gave me headaches, if you have a better idea how to do it I'm all ears! --- arch/arm/common

[PATCH v2 05/12] cifs: Pass a pointer to virt_to_page()

2023-05-22 Thread Linus Walleij
Talpey Signed-off-by: Linus Walleij --- fs/cifs/smbdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 0362ebd4fa0f..964f07375a8d 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -2500,7 +2500,7 @@ static ssize_t

[PATCH v2 01/12] fs/proc/kcore.c: Pass a pointer to virt_addr_valid()

2023-05-22 Thread Linus Walleij
The virt_addr_valid() should be passed a pointer, the current code passing a long unsigned int is just exploiting the unintentional polymorphism of these calls being implemented as preprocessor macros. Signed-off-by: Linus Walleij --- fs/proc/kcore.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v2 00/12] arch: Make virt_to_pfn into a static inline

2023-05-22 Thread Linus Walleij
trimmed it down to the mailing lists since these people certainly have received the patches before. Signed-off-by: Linus Walleij --- Changes in v2: - Fix some "void * x" into "void *x" in generic page accessors and in m68k. - Collected a few ACKs - All build tests appear to

[PATCH v2 02/12] m68k: Pass a pointer to virt_to_pfn() virt_to_page()

2023-05-22 Thread Linus Walleij
-by: Geert Uytterhoeven Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Fix the sun3 pgtable macro to not cast to unsigned long. - Make a similar change to the ColdFire include. ChangeLog v1->v2: - Add an extra parens around the page argument to the PD_PTABLE() macro, as is normally re

[PATCH v2 03/12] ARC: init: Pass a pointer to virt_to_pfn() in init

2023-05-22 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix up the offending call in arch/arc with an explicit cast. Signed-off-by: Linus Walleij --- arch/arc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index

Re: [PATCH 02/12] m68k: Pass a pointer to virt_to_pfn() virt_to_page()

2023-05-16 Thread Linus Walleij
> -((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) > +(__va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) Thanks, folded this into the patch! Yours, Linus Walleij __

[PATCH 07/12] netfs: Pass a pointer to virt_to_page()

2023-05-11 Thread Linus Walleij
-by: Linus Walleij --- fs/netfs/iterator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/netfs/iterator.c b/fs/netfs/iterator.c index 8a4c86687429..0431ec4a7298 100644 --- a/fs/netfs/iterator.c +++ b/fs/netfs/iterator.c @@ -240,7 +240,7 @@ static ssize_t netfs_extract_kvec_to_sg

[PATCH 09/12] asm-generic/page.h: Make pfn accessors static inlines

2023-05-11 Thread Linus Walleij
) as arguments without warnings. For symmetry we do the same change for pfn_to_virt. Immediately define virt_to_pfn and pfn_to_virt to the static inline after the static inline since this style of defining functions is used for the generic helpers. Signed-off-by: Linus Walleij --- include/asm

[PATCH 11/12] arm64: memory: Make virt_to_pfn() a static inline

2023-05-11 Thread Linus Walleij
) as arguments without warnings. Since arm64 is using to provide __phys_to_pfn() we need to move the inclusion of that header up, so we can resolve the static inline at compile time. Signed-off-by: Linus Walleij --- arch/arm64/include/asm/memory.h | 9 - 1 file changed, 8 insertions

[PATCH 06/12] cifs: Pass a pointer to virt_to_page() in cifsglob

2023-05-11 Thread Linus Walleij
-by: Linus Walleij --- fs/cifs/cifsglob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 414685c5d530..3d29a4bbbc40 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -2218,7 +2218,7 @@ static inline void cifs_sg_set_buf(struct

[PATCH 04/12] riscv: mm: init: Pass a pointer to virt_to_page()

2023-05-11 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix this in the RISCV mm init code, so we can implement a strongly typed virt_to_pfn(). Signed-off-by: Linus Walleij --- arch/riscv/mm/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/riscv/mm

[PATCH 05/12] cifs: Pass a pointer to virt_to_page()

2023-05-11 Thread Linus Walleij
-by: Linus Walleij --- fs/cifs/smbdirect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 0362ebd4fa0f..964f07375a8d 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/smbdirect.c @@ -2500,7 +2500,7 @@ static ssize_t smb_extract_kvec_to_rdma

[PATCH 02/12] m68k: Pass a pointer to virt_to_pfn() virt_to_page()

2023-05-11 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix up the offending calls in arch/m68k with explicit casts. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Add an extra parens around the page argument to the PD_PTABLE() macro, as is normally required. --- arch/m68k

[PATCH 10/12] ARM: mm: Make virt_to_pfn() a static inline

2023-05-11 Thread Linus Walleij
it impossible to include explicitly. Link: https://lore.kernel.org/linux-mm/20220701160004.24e5ab59a55499f4c...@linux-foundation.org/ Signed-off-by: Linus Walleij --- Russell: the vs inclusion really gave me headaches, if you have a better idea how to do it I'm all ears! --- arch/arm/common

[PATCH 08/12] arm64: vdso: Pass (void *) to virt_to_page()

2023-05-11 Thread Linus Walleij
-by: Linus Walleij --- arch/arm64/kernel/vdso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c index 0119dc91abb5..d9e1355730ef 100644 --- a/arch/arm64/kernel/vdso.c +++ b/arch/arm64/kernel/vdso.c @@ -288,7 +288,7 @@ static int

[PATCH 12/12] m68k/mm: Make pfn accessors static inlines

2023-05-11 Thread Linus Walleij
) as arguments without warnings. For symmetry, do the same with pfn_to_virt(). Signed-off-by: Linus Walleij --- arch/m68k/include/asm/page_mm.h | 11 +-- arch/m68k/include/asm/page_no.h | 11 +-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arch/m68k/include/asm

[PATCH 01/12] fs/proc/kcore.c: Pass a pointer to virt_addr_valid()

2023-05-11 Thread Linus Walleij
The virt_addr_valid() should be passed a pointer, the current code passing a long unsigned int is just exploiting the unintentional polymorphism of these calls being implemented as preprocessor macros. Signed-off-by: Linus Walleij --- fs/proc/kcore.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 03/12] ARC: init: Pass a pointer to virt_to_pfn() in init

2023-05-11 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix up the offending call in arch/arc with an explicit cast. Signed-off-by: Linus Walleij --- arch/arc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index

Re: [PATCH 17/21] ARM: dma-mapping: use arch_sync_dma_for_{device,cpu}() internally

2023-03-31 Thread Linus Walleij
ctoring alone makes the patch highly valuable. Reviewed-by: Linus Walleij Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH 15/21] ARM: dma-mapping: always invalidate WT caches before DMA

2023-03-31 Thread Linus Walleij
rms. This > should have no user visible effect. > > Signed-off-by: Arnd Bergmann Looks good to me. Reviewed-by: Linus Walleij Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH 18/21] ARM: drop SMP support for ARM11MPCore

2023-03-30 Thread Linus Walleij
DMA_CACHE_RWFO option and the cache > management implementation for it. This also helps with other ARMv6 > issues, but for the moment leaves the ability to build a kernel that > can run on both ARMv7 SMP and single-processor ARMv6, which we probably > want to stop supporting as well, but not a

[PATCH] ARC: init: Pass a pointer to virt_to_pfn() in init

2023-03-23 Thread Linus Walleij
becomes polymorphic and accepts both a (unsigned long) and a (void *). Fix up the offending call in arch/arc with an explicit cast. Signed-off-by: Linus Walleij --- arch/arc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index

Re: [PATCH 4/7] dt-bindings: chosen: Add clocksource and clockevent selection

2019-09-12 Thread Linus Walleij
implement a mechanism similar to this one > in this series (see [2] and [3]). OK I am not going to challenge the clock source maintainers on this, so if that is what they want then that is what they should get. It's fine to convert the Integrator driver to

Re: [PATCH 4/7] dt-bindings: chosen: Add clocksource and clockevent selection

2019-09-10 Thread Linus Walleij
ock has this limitation by simply commenting out the IRQ line for it from the device tree. Maybe there is something about this I don't understand. Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH 7/7] clocksource/drivers/integrator-ap: parse the chosen node

2019-09-10 Thread Linus Walleij
timer with a valid interrupt assigned as clock event, while a timer without interrupt can be used for clock source. This has the upside of not needing any special aliases or chosen things. Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@l

Re: [PATCH v4 1/2] GPIO: add single-register GPIO via CREG driver

2018-10-10 Thread Linus Walleij
> * Small fixies. Patch applied. Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH v4 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-10-10 Thread Linus Walleij
On Fri, Sep 28, 2018 at 3:15 PM Eugeniy Paltsev wrote: > This patch adds documentation of device tree bindings for the Synopsys > GPIO via CREG driver. > > Reviewed-by: Rob Herring > Reviewed-by: Linus Walleij > Signed-off-by: Eugeniy Paltsev > --- > Changes v3-&

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-09-05 Thread Linus Walleij
On Thu, Aug 30, 2018 at 8:16 PM Eugeniy Paltsev wrote: > On Thu, 2018-08-30 at 10:43 +0200, Linus Walleij wrote: > > > +- snps,bit-per-line: Number of bits per each gpio line (see picture). > > > + Array the size of "snps,ngpios" > > > +- snps,shift: Shi

Re: [PATCH v2 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings

2018-08-30 Thread Linus Walleij
Default values for different lines can be achieved by hogs if it's OK to tie them up perpetually, else work on creating generic inialization values in gpio.txt and implement that in gpiolib-of.c for everyone. This discussion comes up from time to time. Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

[PATCH 2/2] gpio: tb10x: Use GENERIC_GPIO

2018-08-06 Thread Linus Walleij
Instead of open coding logic for reading and writing GPIO lines, use the generic GPIO library. Also switch to using the spinlock from the generic GPIO to protect the registers. Cc: linux-snps-arc@lists.infradead.org Cc: Christian Ruppert Signed-off-by: Linus Walleij --- drivers/gpio/Kconfig

[PATCH 1/2] gpio: tb10x: Create local helper variables

2018-08-06 Thread Linus Walleij
Ruppert Signed-off-by: Linus Walleij --- drivers/gpio/gpio-tb10x.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index a12cd0b5c972..422b0ac5a9de 100644 --- a/drivers/gpio/gpio-tb10x.c +++

[PATCH] gpio: tb10x: Use the right include

2018-08-06 Thread Linus Walleij
This driver includes the legacy and but all it needs is really . Cc: linux-snps-arc@lists.infradead.org Cc: Christian Ruppert Signed-off-by: Linus Walleij --- drivers/gpio/gpio-tb10x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers

Re: [PATCH 3/7] clocksource: Rename clocksource_probe

2017-05-28 Thread Linus Walleij
org> Reviewed-by: Linus Walleij <linus.wall...@linaro.org> Yours, Linus Walleij ___ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc

Re: [PATCH 2/7] clocksource: Rename CLOCKSOURCE_OF_DECLARE

2017-05-28 Thread Linus Walleij
emented at the driver > level. > > So instead of dealing with a named clocksource macro, let's use a more generic > one: TIMER_OF_DECLARE. > > The patch has not functional changes. > > Signed-off-by: Daniel Lezcano <daniel.lezc...@linaro.org>' This makes the macro make

Re: [PATCH 02/23] arc: select GPIOLIB directly

2016-04-26 Thread Linus Walleij
On Fri, Apr 22, 2016 at 7:16 AM, Vineet Gupta <vineet.gup...@synopsys.com> wrote: > On Wednesday 20 April 2016 02:28 PM, Linus Walleij wrote: >> Instead of indirectly selecting GPIOLIB via the >> ARCH_REQUIRE_GPIOLIB symbol, just select GPIOLIB. >> >> Cc: Michael B

[PATCH 02/23] arc: select GPIOLIB directly

2016-04-20 Thread Linus Walleij
Instead of indirectly selecting GPIOLIB via the ARCH_REQUIRE_GPIOLIB symbol, just select GPIOLIB. Cc: Michael Büsch <m...@bues.ch> Cc: Vineet Gupta <vgu...@synopsys.com> Cc: linux-snps-arc@lists.infradead.org Signed-off-by: Linus Walleij <linus.wall...@linaro.org> --- Variou