Revert "serial: 8250: Let drivers request full 16550A feature probing"
This reverts commit 63a3d75cf1 which is
commit 9906890c89e4dbd900ed87ad3040080339a7f411 upstream.
It breaks the kernel api and is something needed by Android systems, so
it can be reverted.
Bug: 161946584
Change-Id: I4706c2055bdff8679b40efd3590fcca5050c3b71
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1029,8 +1029,7 @@ static void autoconfig_16550a(struct uart_8250_port *up)
|
||||
up->port.type = PORT_16550A;
|
||||
up->capabilities |= UART_CAP_FIFO;
|
||||
|
||||
if (!IS_ENABLED(CONFIG_SERIAL_8250_16550A_VARIANTS) &&
|
||||
!(up->port.flags & UPF_FULL_PROBE))
|
||||
if (!IS_ENABLED(CONFIG_SERIAL_8250_16550A_VARIANTS))
|
||||
return;
|
||||
|
||||
/*
|
||||
|
||||
@@ -104,7 +104,7 @@ struct uart_icount {
|
||||
__u32 buf_overrun;
|
||||
};
|
||||
|
||||
typedef u64 __bitwise upf_t;
|
||||
typedef unsigned int __bitwise upf_t;
|
||||
typedef unsigned int __bitwise upstat_t;
|
||||
|
||||
struct uart_port {
|
||||
@@ -211,7 +211,6 @@ struct uart_port {
|
||||
#define UPF_FIXED_PORT ((__force upf_t) (1 << 29))
|
||||
#define UPF_DEAD ((__force upf_t) (1 << 30))
|
||||
#define UPF_IOREMAP ((__force upf_t) (1 << 31))
|
||||
#define UPF_FULL_PROBE ((__force upf_t) (1ULL << 32))
|
||||
|
||||
#define __UPF_CHANGE_MASK 0x17fff
|
||||
#define UPF_CHANGE_MASK ((__force upf_t) __UPF_CHANGE_MASK)
|
||||
|
||||
Reference in New Issue
Block a user