MLK-17738 tty: serial: lpuart: restore console setting after power lost
authorFugang Duan <fugang.duan@nxp.com>
Mon, 5 Mar 2018 10:45:51 +0000 (18:45 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:32 +0000 (14:56 -0500)
commit2b9ea8a323096b815b2d89d00039bfb726cbdb71
tree919b4c5b06ba0d8a4f12d5a9c3566f4145a78678
parentf1b132018cbae863620dd36262ecfcda8084dd20
MLK-17738 tty: serial: lpuart: restore console setting after power lost

i.MX7ULP enter VLLS mode that lpuart module power off and registers
all lost no matter the port is wakeup source.

For console port, console baud rate setting lost and print messy
log when enable the console port as wakeup source. To avoid the
issue happen, user should not enable uart port as wakeup source
in VLLS mode, or restore console setting.

The patch is to add one fixup to restore console port register setting
for i.MX7ULP platform.

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c