* [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h
@ 2026-08-04 13:20 Thorsten Blum
2026-08-04 13:20 ` [PATCH 2/3] parisc/serial: Add include guard to asm/serial.h Thorsten Blum
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Thorsten Blum @ 2026-08-04 13:20 UTC (permalink / raw)
To: James E.J. Bottomley, Helge Deller
Cc: Thorsten Blum, linux-parisc, linux-kernel
Include asm-generic/serial.h and use the generic BASE_BAUD definition
instead of redefining it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/parisc/include/asm/serial.h | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/parisc/include/asm/serial.h b/arch/parisc/include/asm/serial.h
index 77e9b67c87ee..d9fd3f78d31f 100644
--- a/arch/parisc/include/asm/serial.h
+++ b/arch/parisc/include/asm/serial.h
@@ -2,7 +2,4 @@
* include/asm-parisc/serial.h
*/
-/*
- * This is used for 16550-compatible UARTs
- */
-#define BASE_BAUD ( 1843200 / 16 )
+#include <asm-generic/serial.h>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] parisc/serial: Add include guard to asm/serial.h
2026-08-04 13:20 [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
@ 2026-08-04 13:20 ` Thorsten Blum
2026-08-04 13:20 ` [PATCH 3/3] parisc/serial: Add SPDX license identifier " Thorsten Blum
2026-08-04 13:29 ` [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Helge Deller
2 siblings, 0 replies; 5+ messages in thread
From: Thorsten Blum @ 2026-08-04 13:20 UTC (permalink / raw)
To: James E.J. Bottomley, Helge Deller
Cc: Thorsten Blum, linux-parisc, linux-kernel
Add an include guard and remove the stale filename comment while at it.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/parisc/include/asm/serial.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/parisc/include/asm/serial.h b/arch/parisc/include/asm/serial.h
index d9fd3f78d31f..4f0df8e10a4f 100644
--- a/arch/parisc/include/asm/serial.h
+++ b/arch/parisc/include/asm/serial.h
@@ -1,5 +1,6 @@
-/*
- * include/asm-parisc/serial.h
- */
+#ifndef _ASM_PARISC_SERIAL_H
+#define _ASM_PARISC_SERIAL_H
#include <asm-generic/serial.h>
+
+#endif /* _ASM_PARISC_SERIAL_H */
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] parisc/serial: Add SPDX license identifier to asm/serial.h
2026-08-04 13:20 [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
2026-08-04 13:20 ` [PATCH 2/3] parisc/serial: Add include guard to asm/serial.h Thorsten Blum
@ 2026-08-04 13:20 ` Thorsten Blum
2026-08-04 13:29 ` [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Helge Deller
2 siblings, 0 replies; 5+ messages in thread
From: Thorsten Blum @ 2026-08-04 13:20 UTC (permalink / raw)
To: James E.J. Bottomley, Helge Deller
Cc: Thorsten Blum, linux-parisc, linux-kernel
Add the SPDX license identifier.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
arch/parisc/include/asm/serial.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/parisc/include/asm/serial.h b/arch/parisc/include/asm/serial.h
index 4f0df8e10a4f..122430db8cad 100644
--- a/arch/parisc/include/asm/serial.h
+++ b/arch/parisc/include/asm/serial.h
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_PARISC_SERIAL_H
#define _ASM_PARISC_SERIAL_H
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h
2026-08-04 13:20 [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
2026-08-04 13:20 ` [PATCH 2/3] parisc/serial: Add include guard to asm/serial.h Thorsten Blum
2026-08-04 13:20 ` [PATCH 3/3] parisc/serial: Add SPDX license identifier " Thorsten Blum
@ 2026-08-04 13:29 ` Helge Deller
2026-08-04 13:37 ` Thorsten Blum
2 siblings, 1 reply; 5+ messages in thread
From: Helge Deller @ 2026-08-04 13:29 UTC (permalink / raw)
To: Thorsten Blum, James E.J. Bottomley; +Cc: linux-parisc, linux-kernel
Hi Thorsten,
On 8/4/26 15:20, Thorsten Blum wrote:
> Include asm-generic/serial.h and use the generic BASE_BAUD definition
> instead of redefining it.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> ---
> arch/parisc/include/asm/serial.h | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Instead of sending 3 patches, isn't removing arch/parisc/include/asm/serial.h
and adding the patch below the better approach?
Helge
diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild
index d48d158f7241..4fc315085914 100644
--- a/arch/parisc/include/asm/Kbuild
+++ b/arch/parisc/include/asm/Kbuild
@@ -6,3 +6,4 @@ generic-y += kvm_para.h
generic-y += mcs_spinlock.h
generic-y += ring_buffer.h
generic-y += user.h
+generic-y += serial.h
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h
2026-08-04 13:29 ` [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Helge Deller
@ 2026-08-04 13:37 ` Thorsten Blum
0 siblings, 0 replies; 5+ messages in thread
From: Thorsten Blum @ 2026-08-04 13:37 UTC (permalink / raw)
To: Helge Deller; +Cc: James E.J. Bottomley, linux-parisc, linux-kernel
On Tue, Aug 04, 2026 at 03:29:51PM +0200, Helge Deller wrote:
> Hi Thorsten,
>
> On 8/4/26 15:20, Thorsten Blum wrote:
> > Include asm-generic/serial.h and use the generic BASE_BAUD definition
> > instead of redefining it.
> >
> > Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
> > ---
> > arch/parisc/include/asm/serial.h | 5 +----
> > 1 file changed, 1 insertion(+), 4 deletions(-)
>
> Instead of sending 3 patches, isn't removing arch/parisc/include/asm/serial.h
> and adding the patch below the better approach?
It was a single patch at some point, but since serial.h is otherwise
empty, your approach seems a lot nicer. I'll send a v2.
Thanks,
Thorsten
> diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild
> index d48d158f7241..4fc315085914 100644
> --- a/arch/parisc/include/asm/Kbuild
> +++ b/arch/parisc/include/asm/Kbuild
> @@ -6,3 +6,4 @@ generic-y += kvm_para.h
> generic-y += mcs_spinlock.h
> generic-y += ring_buffer.h
> generic-y += user.h
> +generic-y += serial.h
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-08-04 13:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-04 13:20 [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
2026-08-04 13:20 ` [PATCH 2/3] parisc/serial: Add include guard to asm/serial.h Thorsten Blum
2026-08-04 13:20 ` [PATCH 3/3] parisc/serial: Add SPDX license identifier " Thorsten Blum
2026-08-04 13:29 ` [PATCH 1/3] parisc/serial: Use generic BASE_BAUD in asm/serial.h Helge Deller
2026-08-04 13:37 ` Thorsten Blum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox