Thread (3 messages) 3 messages, 2 authors, 2022-04-04

Re: [PATCH v2 07/12] serial: termbits: ADDRB to indicate 9th bit addressing mode

From: Arnd Bergmann <arnd@arndb.de>
Date: 2022-04-04 08:57:39
Also in: linux-alpha, linux-api, linux-arch, linux-mips, linux-serial, linux-usb, sparclinux

On Mon, Apr 4, 2022 at 10:29 AM Ilpo Järvinen
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
 #define CLOCAL 00100000
+#define ADDRB  010000000               /* address bit */
 #define CMSPAR   010000000000          /* mark or space (stick) parity */
 #define CRTSCTS          020000000000          /* flow control */
diff --git a/arch/mips/include/uapi/asm/termbits.h b/arch/mips/include/uapi/asm/termbits.h
index dfeffba729b7..e7ea31cfec78 100644
--- a/arch/mips/include/uapi/asm/termbits.h
+++ b/arch/mips/include/uapi/asm/termbits.h
@@ -181,6 +181,7 @@ struct ktermios {
 #define         B3000000 0010015
 #define         B3500000 0010016
 #define         B4000000 0010017
+#define ADDRB    0020000       /* address bit */
 #define CIBAUD   002003600000  /* input baud rate */
 #define CMSPAR   010000000000  /* mark or space (stick) parity */
 #define CRTSCTS          020000000000  /* flow control */
It looks like the top bits are used the same way on all architectures
already, while the bottom bits of the flag differ. Could you pick
the next free bit from the top to use the same value 04000000000
everywhere?

        Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help