]> git.baikalelectronics.ru Git - kernel.git/commit
tty: xilinx_uartps: Fix missing id assignment to the console
authorShubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Mon, 4 May 2020 14:27:28 +0000 (16:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2020 16:55:45 +0000 (18:55 +0200)
commit082ba21deb797196b5a360e852186074e2b25b8d
tree7579c03792f3146be1876027e77e1c3fb1d0a673
parent8918eddf15495fd6dae103aa578bfba573b69e45
tty: xilinx_uartps: Fix missing id assignment to the console

When serial console has been assigned to ttyPS1 (which is serial1 alias)
console index is not updated property and pointing to index -1 (statically
initialized) which ends up in situation where nothing has been printed on
the port.

The commit d253e9dce640 ("Revert "serial: uartps: Register own uart console
and driver structures"") didn't contain this line which was removed by
accident.

Fixes: d253e9dce640 ("Revert "serial: uartps: Register own uart console and driver structures"")
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/ed3111533ef5bd342ee5ec504812240b870f0853.1588602446.git.michal.simek@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c