[PATCH v2 0/2] serial: imx: fix unregister/register console
Francesco Dolcini
francesco.dolcini at toradex.com
Wed Oct 20 12:26:41 PDT 2021
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
More information about the linux-arm-kernel
mailing list