serial: imx: get rid of registers shadowing
authorSergey Organov <sorganov@gmail.com>
Wed, 1 Feb 2023 14:16:03 +0000 (17:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2023 12:15:10 +0000 (13:15 +0100)
commitf2d9fbb6f4a7175ce41afe292d46685ef7752a67
tree20b19fc315de0e2dc2579a426df967d9e026c5b3
parent2af4b918848b4102f0bf5761057e2506258e0bb8
serial: imx: get rid of registers shadowing

Neither registers shadowing is functionally needed as all the registers are
read-write, nor the shadowing makes much sense for speed-up, as most speed
critical reads/writes (of data Rx/Tx registers) are not shadowed anyway.
Moreover, the shadowing code is obviously pure overhead on the write path.

Get rid of the shadowing code and variables due to above considerations.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Link: https://lore.kernel.org/r/20230201141603.4205-1-sorganov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c