All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: imx: fix unregister/register console
@ 2021-10-20 19:26 ` Francesco Dolcini
  0 siblings, 0 replies; 14+ messages in thread
From: Francesco Dolcini @ 2021-10-20 19:26 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Shawn Guo, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
	Andy Shevchenko
  Cc: Francesco Dolcini, linux-serial, linux-arm-kernel, linux-kernel,
	u.kleine-koenig, Stefan Agner

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-10-21  8:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 19:26 [PATCH v2 0/2] serial: imx: fix unregister/register console Francesco Dolcini
2021-10-20 19:26 ` Francesco Dolcini
2021-10-20 19:26 ` [PATCH v2 1/2] serial: imx: fix detach/attach of serial console Francesco Dolcini
2021-10-20 19:26   ` Francesco Dolcini
2021-10-20 19:39   ` Uwe Kleine-König
2021-10-20 19:39     ` Uwe Kleine-König
2021-10-20 19:54   ` Andy Shevchenko
2021-10-20 19:54     ` Andy Shevchenko
2021-10-21  8:28     ` Greg Kroah-Hartman
2021-10-21  8:28       ` Greg Kroah-Hartman
2021-10-20 19:26 ` [PATCH v2 2/2] serial: imx: disable console clocks on unregister Francesco Dolcini
2021-10-20 19:26   ` Francesco Dolcini
2021-10-21  8:39   ` Uwe Kleine-König
2021-10-21  8:39     ` Uwe Kleine-König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.