lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] serial: imx: fix unregister/register console
Date
Hi,
here a couple of fixes to properly handle imx serial console
unregister/register at runtime.

The patch from Stefan was already posted years ago but never merged [1],
however is still valid and it's pretty easy to trigger the problem. We have
this patch in our kernel tree since 3 years, but for some reason we never
managed to upstream it.

As correctly wrote by Uwe [2] this issue affects multiple drivers, I could
provide a patch for those, but I will not have any way to test it.

The second patch is required to have a balanced clock enable/disable
when doing console register/unregister.

The issue is present at least since
a3cb39d258ef ("serial: core: Allow detach and attach serial device for console")

[1] https://marc.info/?l=linux-serial&m=154221779312036&w=2
[2] https://lore.kernel.org/all/20211014081028.xafpuzrxk3jvv5qn@pengutronix.de/

Changes in v2:
Improved commit message and added fixes tag.

---

Francesco Dolcini (1):
serial: imx: disable console clocks on unregister

Stefan Agner (1):
serial: imx: fix detach/attach of serial console

drivers/tty/serial/imx.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2021-10-20 21:28    [W:0.066 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site