MLK-21006 Driver: lpuart: Disable interrupts before request irq
authorFlynn xu <flynn.xu@nxp.com>
Fri, 1 Mar 2019 22:59:31 +0000 (17:59 -0500)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:30 +0000 (11:35 +0300)
commit80b5ccf1922f4770369409064169b35243ac6a41
tree03a61ff0f1a83e40af18a997e84862bfbf0f9d9f
parent04a6df1a98e534783b5c1ed599911363f3864272
MLK-21006 Driver: lpuart: Disable interrupts before request irq

Commit b311ef1d549b ("MLK-20989: Driver: lpuart: reset registers
before enable lpuart") breaks early console function, and the
commit already was reverted. The reworked patch is to fix the
issue correctly.

This patch has been tested on i.MX8QM/QXP.

change log:
V1 -> V2:
  1. Remove lock, since there is no race condition.

Suggested-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 161f0144934fe917123c79eae6a7539806d1e04e)
drivers/tty/serial/fsl_lpuart.c