powerpc/serial: Use generic BASE_BAUD in asm/serial.h
PATCH 1/1 powerpc/serial: Use generic BASE_BAUD in asm/serial.h
Include asm-generic/serial.h and use the generic BASE_BAUD definition instead of redefining it.
Signed-off-by Thorsten Blum <[email protected]>
--- arch/powerpc/include/asm/serial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/serial.h +2 -2
@@ -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 );
Le 30/07/2026 à 00:38, Thorsten Blum a écrit :
Quoted 4 lines
Include
asm-generic/serial.hand use the genericBASE_BAUDdefinition instead of redefining it.Signed-off-by Thorsten Blum <[email protected]>
Reviewed-by Christophe Leroy (CS GROUP) <[email protected]>
Quoted 19 lines
--- arch/powerpc/include/asm/serial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/powerpc/include/asm/serial.h +2
-2@@ -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 );
Quoted 7 lines · Thorsten Blum
Include
asm-generic/serial.hand use the genericBASE_BAUDdefinition instead of redefining it.Signed-off-by Thorsten Blum <[email protected]>--- arch/powerpc/include/asm/serial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Amit Machhiwal <[email protected]>
Quoted 16 lines
arch/powerpc/include/asm/serial.h +2
-2@@ -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 );
Quoted 4 lines · Thorsten Blum
Include
asm-generic/serial.hand use the genericBASE_BAUDdefinition instead of redefining it.
Applied to powerpc/next.
[1/1] powerpc/serial: Use generic BASE_BAUD in asm/serial.h
https://git.kernel.org/powerpc/c/be57ed769406eb2cafd3b98f83ffebd5f703940f
cheers