Thread (4 messages) 4 messages, 4 authors, 2026-08-03

Re: [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h

flat view

From: Amit Machhiwal <hidden>
Date: 2026-07-30 14:39:28
Also in: lkml

On 2026/07/30 12:38 AM, Thorsten Blum wrote:
Include asm-generic/serial.h and use the generic BASE_BAUD definition
instead of redefining it.

Signed-off-by: Thorsten Blum <redacted>
---
 arch/powerpc/include/asm/serial.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Amit Machhiwal <redacted>
quoted hunk ↗ jump to hunk
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);
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help