* [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h
@ 2026-07-29 22:38 Thorsten Blum
2026-07-30 6:34 ` Christophe Leroy (CS GROUP)
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2026-07-29 22:38 UTC (permalink / raw)
To: Madhavan Srinivasan, Michael Ellerman, Nicholas Piggin,
Christophe Leroy (CS GROUP)
Cc: Thorsten Blum, linuxppc-dev, 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/powerpc/include/asm/serial.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/include/asm/serial.h b/arch/powerpc/include/asm/serial.h
index cd6c18d0e66e..eca0ef56f874 100644
--- a/arch/powerpc/include/asm/serial.h
+++ b/arch/powerpc/include/asm/serial.h
@@ -9,8 +9,8 @@
* through the device tree.
*/
-/* Default baud base if not found in device-tree */
-#define BASE_BAUD ( 1843200 / 16 )
+/* Provides BASE_BAUD, used as fallback if not found in device tree. */
+#include <asm-generic/serial.h>
#ifdef CONFIG_PPC_UDBG_16550
extern void find_legacy_serial_ports(void);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h
2026-07-29 22:38 [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
@ 2026-07-30 6:34 ` Christophe Leroy (CS GROUP)
0 siblings, 0 replies; 2+ messages in thread
From: Christophe Leroy (CS GROUP) @ 2026-07-30 6:34 UTC (permalink / raw)
To: Thorsten Blum, Madhavan Srinivasan, Michael Ellerman,
Nicholas Piggin
Cc: linuxppc-dev, linux-kernel
Le 30/07/2026 à 00:38, Thorsten Blum a écrit :
> 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>
Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
> ---
> arch/powerpc/include/asm/serial.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/serial.h b/arch/powerpc/include/asm/serial.h
> index cd6c18d0e66e..eca0ef56f874 100644
> --- a/arch/powerpc/include/asm/serial.h
> +++ b/arch/powerpc/include/asm/serial.h
> @@ -9,8 +9,8 @@
> * through the device tree.
> */
>
> -/* Default baud base if not found in device-tree */
> -#define BASE_BAUD ( 1843200 / 16 )
> +/* Provides BASE_BAUD, used as fallback if not found in device tree. */
> +#include <asm-generic/serial.h>
>
> #ifdef CONFIG_PPC_UDBG_16550
> extern void find_legacy_serial_ports(void);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-30 6:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29 22:38 [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h Thorsten Blum
2026-07-30 6:34 ` Christophe Leroy (CS GROUP)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox