From: Thorsten Blum <blum@kernel.org>
To: Richard Henderson <richard.henderson@linaro.org>,
Matt Turner <mattst88@gmail.com>,
Magnus Lindholm <linmag7@gmail.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Arnd Bergmann <arnd@arndb.de>
Cc: linux-alpha@vger.kernel.org, linux-m68k@lists.linux-m68k.org,
linux-arch@vger.kernel.org, Thorsten Blum <blum@kernel.org>
Subject: [PATCH 2/5] alpha/serial: Use shared legacy UART I/O port constants
Date: Sat, 5 Dec 2026 13:23:12 +0100 [thread overview]
Message-ID: <20261205122309.104396-9-blum@kernel.org> (raw)
In-Reply-To: <20261205122309.104396-7-blum@kernel.org>
Replace the hard-coded port addresses in SERIAL_PORT_DFNS with
PORT_TTYS*. Drop the redundant ttyS comments and align the columns.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
arch/alpha/include/asm/serial.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/alpha/include/asm/serial.h b/arch/alpha/include/asm/serial.h
index 7fa754cab5df..5e128cacca12 100644
--- a/arch/alpha/include/asm/serial.h
+++ b/arch/alpha/include/asm/serial.h
@@ -13,11 +13,11 @@
#define STD_COM4_FLAGS UPF_BOOT_AUTOCONF
#endif
-#define SERIAL_PORT_DFNS \
- /* UART CLK PORT IRQ FLAGS */ \
- { 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
- { 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
- { 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
- { 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
+#define SERIAL_PORT_DFNS \
+ /* UART CLK PORT IRQ FLAGS */ \
+ { 0, BASE_BAUD, PORT_TTYS0, 4, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS1, 3, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS2, 4, STD_COM_FLAGS }, \
+ { 0, BASE_BAUD, PORT_TTYS3, 3, STD_COM4_FLAGS },
#endif /* _ASM_ALPHA_SERIAL_H */
next prev parent reply other threads:[~2026-12-05 12:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 12:23 [PATCH 0/5] serial: Share legacy UART I/O port constants Thorsten Blum
2026-12-05 12:23 ` [PATCH 1/5] asm-generic: serial: Define legacy UART I/O port addresses Thorsten Blum
2026-12-05 12:23 ` Thorsten Blum [this message]
2026-12-05 12:23 ` [PATCH 3/5] alpha: Use shared legacy UART I/O port constants Thorsten Blum
2026-12-05 12:23 ` [PATCH 4/5] m68k/serial: " Thorsten Blum
2026-12-05 12:23 ` [PATCH 5/5] m68k: q40: " Thorsten Blum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261205122309.104396-9-blum@kernel.org \
--to=blum@kernel.org \
--cc=arnd@arndb.de \
--cc=geert@linux-m68k.org \
--cc=linmag7@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=mattst88@gmail.com \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox