Skip to content

Commit 266fcab

Browse files
johnnlee-168DhineshCool
authored andcommitted
serial: msm_geni_serial: Fix console log false start issue
With the commit d0e6e429d99a after merging android-4.14-stable (4.14.257), it is possible to re-configure the preferred console when the serial ports are added even if the cmdline parameter 'console' is set as null. Set the flag 'console_set_on_cmdline' as 1 directly since we do not need to setup the console at runtime. Bug: 211946493 Bug: 210364486 Change-Id: I2f472520ad5ff8593878cfd4f818febc965d828e Signed-off-by: JohnnLee <johnnlee@google.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent b50fe07 commit 266fcab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/tty/serial/msm_geni_serial.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,6 +3435,9 @@ static int msm_geni_serial_probe(struct platform_device *pdev)
34353435
if (ret)
34363436
goto exit_geni_serial_probe;
34373437

3438+
/* Set the flag to prevent to set up the console at runtime */
3439+
console_set_on_cmdline = 1;
3440+
34383441
ret = uart_add_one_port(drv, uport);
34393442
if (ret)
34403443
goto exit_geni_serial_probe;

0 commit comments

Comments
 (0)