Commit 60f3617
serial: fsl_lpuart: Reset prior to registration
Since commit bd5305d ("tty: serial: fsl_lpuart: do software reset
for imx7ulp and imx8qxp"), certain i.MX UARTs are reset after they've
already been registered. Register state may thus be clobbered after
user space has begun to open and access the UART.
Avoid by performing the reset prior to registration.
Fixes: bd5305d ("tty: serial: fsl_lpuart: do software reset for imx7ulp and imx8qxp")
Cc: stable@vger.kernel.org # v5.15+
Cc: Fugang Duan <fugang.duan@nxp.com>
Cc: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Link: https://lore.kernel.org/r/72fb646c1b0b11c989850c55f52f9ff343d1b2fa.1662884345.git.lukas@wunner.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 1d10cd4 commit 60f3617
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2724 | 2724 | | |
2725 | 2725 | | |
2726 | 2726 | | |
2727 | | - | |
2728 | | - | |
2729 | | - | |
2730 | 2727 | | |
2731 | 2728 | | |
2732 | 2729 | | |
2733 | 2730 | | |
2734 | 2731 | | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
2735 | 2736 | | |
2736 | 2737 | | |
2737 | 2738 | | |
| |||
2747 | 2748 | | |
2748 | 2749 | | |
2749 | 2750 | | |
2750 | | - | |
2751 | 2751 | | |
2752 | 2752 | | |
| 2753 | + | |
2753 | 2754 | | |
2754 | 2755 | | |
2755 | 2756 | | |
| |||
0 commit comments