Skip to content

Commit 1d26517

Browse files
Thierry Bultelgregkh
authored andcommitted
serial: sh-sci: Use private port ID
New port types cannot be added in serial_core.h, which is shared with userspace. In order to support new port types, the coming new ones will have BIT(7) set in the id value, and in this case, uartport->type is set to PORT_GENERIC. This commit therefore changes all the places where the port type is read, by not relying on uartport->type but on the private value stored in struct sci_port. Signed-off-by: Thierry Bultel <[email protected]> Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 13af95c commit 1d26517

File tree

2 files changed

+93
-71
lines changed

2 files changed

+93
-71
lines changed

drivers/tty/serial/sh-sci-common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ struct sci_port {
142142
int rx_fifo_timeout;
143143
u16 hscif_tot;
144144

145+
u8 type;
146+
u8 regtype;
147+
145148
const struct sci_port_ops *ops;
146149

147150
bool has_rtscts;

0 commit comments

Comments
 (0)