Revert "serial: uartps: Change uart ID port allocation"
authorMichal Simek <michal.simek@xilinx.com>
Fri, 3 Apr 2020 09:24:34 +0000 (11:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:24 +0000 (16:33 +0200)
commitbbc0423c89689da1907b5d49e381bfa5c4892dc0
tree1dd9cc293fbed1de07d9815d05a21a905b7c758b
parentf7504efa6bf7594b3b92819eaec92f4a6fb9c9ab
Revert "serial: uartps: Change uart ID port allocation"

commit 72d68197281e2ad313960504d10b0c41ff87fd55 upstream.

This reverts commit ae1cca3fa3478be92948dbbcd722390272032ade.

With setting up NR_PORTS to 16 to be able to use serial2 and higher
aliases and don't loose functionality which was intended by these changes.

As Johan says, this driver needs a lot more work and these changes are
only going in the wrong direction:
  https://lkml.kernel.org/r/20190523091839.GC568@localhost

Reported-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/a94931b65ce0089f76fb1fe6b446a08731bff754.1585905873.git.michal.simek@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c