Re: [PATCH] Revert "tty: serial: 8250: add CON_CONSDEV to flags"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ping? 
 
 
------------------ Original ------------------
From:  "Greg Kroah-Hartman"<gregkh@xxxxxxxxxxxxxxxxxxx>;
Date:  Mon, Nov 14, 2016 07:49 PM
To:  "Huacai Chen"<chenhc@xxxxxxxxxx>; 
Cc:  "linux-serial"<linux-serial@xxxxxxxxxxxxxxx>; "Matthew Leach"<matthew.leach@xxxxxxxxxxxxxxx>; "stable"<stable@xxxxxxxxxxxxxxx>; "Ce Sun"<sunc@xxxxxxxxxx>; 
Subject:  Re: [PATCH] Revert "tty: serial: 8250: add CON_CONSDEV to flags"

 
On Mon, Nov 14, 2016 at 10:53:41AM +0800, Huacai Chen wrote:
> This reverts commit d03516df837587368fc6e75591f6329c072b9eb5. From
> Documentation/serial-console.txt we can know that serial port becomes
> the system console only when it appears in the kernel parameters as the
> last console device. But commit d03516df837587 adds a CON_CONSDEV flag
> to univ8250_console and breaks this convention. After that either we
> use "console=tty console=ttyS0" or "console=ttyS0 console=tty", serial
> port will always be the system console.
> 
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Ce Sun <sunc@xxxxxxxxxx>
> Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx>
> ---
>  drivers/tty/serial/8250/8250_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serial/8250/8250_core.c b/drivers/tty/serial/8250/8250_core.c
> index 240a361..e8819aa 100644
> --- a/drivers/tty/serial/8250/8250_core.c
> +++ b/drivers/tty/serial/8250/8250_core.c
> @@ -675,7 +675,7 @@ static struct console univ8250_console = {
>  	.device		= uart_console_device,
>  	.setup		= univ8250_console_setup,
>  	.match		= univ8250_console_match,
> -	.flags		= CON_PRINTBUFFER | CON_ANYTIME | CON_CONSDEV,
> +	.flags		= CON_PRINTBUFFER | CON_ANYTIME,
>  	.index		= -1,
>  	.data		= &serial8250_reg,
>  };

Odd.  Matthew, any thoughts here?  This seems to be the opposite of why
you submitted this change...

thanks,

greg k-h��.n��������+%������w��{.n�����������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]