linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] tty serial drivers use devm_clk_get_enabled() helpers
@ 2024-08-22  3:39 Lei Liu
  2024-08-22  3:39 ` [PATCH 1/8] tty: 8250_ingenic: Use " Lei Liu
                   ` (7 more replies)
  0 siblings, 8 replies; 20+ messages in thread
From: Lei Liu @ 2024-08-22  3:39 UTC (permalink / raw)
  To: Paul Cercueil, Greg Kroah-Hartman, Jiri Slaby, Thierry Reding,
	Jonathan Hunter, Kunihiko Hayashi, Masami Hiramatsu,
	Richard Genoud, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
	Liviu Dudau, Sudeep Holla, Lorenzo Pieralisi, Andreas Färber,
	Manivannan Sadhasivam, Patrice Chotard, Maxime Coquelin,
	Alexandre Torgue, Andi Shyti, Andy Shevchenko,
	AngeloGioacchino Del Regno, Uwe Kleine-König, Lei Liu,
	John Ogness, Thomas Gleixner, Jeff Johnson,
	Sebastian Andrzej Siewior, Valentin Caron, Lino Sanfilippo,
	Erwan Le Ray, linux-mips, linux-kernel, linux-serial, linux-tegra,
	linux-arm-kernel, linux-actions, linux-stm32
  Cc: opensource.kernel

The devm_clk_get_enabled() helpers:
    - call devm_clk_get()
    - call clk_prepare_enable() and register what is needed in order to
     call clk_disable_unprepare() when needed, as a managed resource.

This simplifies the code and avoids calls to clk_disable_unprepare().

Lei Liu (8):
  tty: 8250_ingenic: Use devm_clk_get_enabled() helpers
  tty: 8250_tegra: Use devm_clk_get_enabled() helpers
  tty: 8250_uniphier: Use devm_clk_get_enabled() helpers
  tty: atmel_serial: Use devm_clk_get_enabled() helpers
  tty: mps2-uart: Use devm_clk_get_enabled() helpers
  tty: owl-uart: Use devm_clk_get_enabled() helpers
  tty: st-asc: Use devm_clk_get_enabled() helpers
  tty: stm32-usart: Use devm_clk_get_enabled() helpers

 drivers/tty/serial/8250/8250_ingenic.c  | 26 +++----------------------
 drivers/tty/serial/8250/8250_tegra.c    |  8 +-------
 drivers/tty/serial/8250/8250_uniphier.c |  8 +-------
 drivers/tty/serial/atmel_serial.c       |  8 +-------
 drivers/tty/serial/mps2-uart.c          |  9 +--------
 drivers/tty/serial/owl-uart.c           | 10 +---------
 drivers/tty/serial/st-asc.c             |  8 ++------
 drivers/tty/serial/stm32-usart.c        | 16 +--------------
 8 files changed, 11 insertions(+), 82 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2024-08-22 14:35 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22  3:39 [PATCH 0/8] tty serial drivers use devm_clk_get_enabled() helpers Lei Liu
2024-08-22  3:39 ` [PATCH 1/8] tty: 8250_ingenic: Use " Lei Liu
2024-08-22  9:40   ` Paul Cercueil
2024-08-22 13:24     ` Andy Shevchenko
2024-08-22 13:09   ` Andy Shevchenko
2024-08-22  3:39 ` [PATCH 2/8] tty: 8250_tegra: " Lei Liu
2024-08-22 13:10   ` Andy Shevchenko
2024-08-22  3:39 ` [PATCH 3/8] tty: 8250_uniphier: " Lei Liu
2024-08-22  3:39 ` [PATCH 4/8] tty: atmel_serial: " Lei Liu
2024-08-22 13:28   ` Richard GENOUD
2024-08-22 13:34     ` Andy Shevchenko
2024-08-22 14:33       ` Alexandre Belloni
2024-08-22  3:39 ` [PATCH 5/8] tty: mps2-uart: " Lei Liu
2024-08-22 13:19   ` Andy Shevchenko
2024-08-22 13:29     ` Lei Liu
2024-08-22  3:39 ` [PATCH 6/8] tty: owl-uart: " Lei Liu
2024-08-22  3:39 ` [PATCH 7/8] tty: st-asc: " Lei Liu
2024-08-22 13:21   ` Andy Shevchenko
2024-08-22  3:39 ` [PATCH 8/8] tty: stm32-usart: " Lei Liu
2024-08-22 13:23   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).