lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240826112933.7249-1-liulei.rjpt@vivo.com>
Date: Mon, 26 Aug 2024 19:29:25 +0800
From: Lei Liu <liulei.rjpt@...o.com>
To: Paul Cercueil <paul@...pouillou.net>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
	Jiri Slaby <jirislaby@...nel.org>,
	Thierry Reding <thierry.reding@...il.com>,
	Jonathan Hunter <jonathanh@...dia.com>,
	Kunihiko Hayashi <hayashi.kunihiko@...ionext.com>,
	Masami Hiramatsu <mhiramat@...nel.org>,
	Andreas Färber <afaerber@...e.de>,
	Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
	Maxime Coquelin <mcoquelin.stm32@...il.com>,
	Alexandre Torgue <alexandre.torgue@...s.st.com>,
	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
	Geert Uytterhoeven <geert+renesas@...der.be>,
	Lei Liu <liulei.rjpt@...o.com>,
	Florian Fainelli <florian.fainelli@...adcom.com>,
	Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
	Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
	Jeff Johnson <quic_jjohnson@...cinc.com>,
	John Ogness <john.ogness@...utronix.de>,
	Thomas Gleixner <tglx@...utronix.de>,
	Valentin Caron <valentin.caron@...s.st.com>,
	Lino Sanfilippo <l.sanfilippo@...bus.com>,
	Erwan Le Ray <erwan.leray@...s.st.com>,
	linux-mips@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	linux-serial@...r.kernel.org,
	linux-tegra@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-actions@...ts.infradead.org,
	linux-stm32@...md-mailman.stormreply.com
Cc: opensource.kernel@...o.com
Subject: [PATCH v2 0/5] tty/serial drivers use devm_clk_get_enabled() helpers

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().

---
version 2 changes
1.8250_ingenic modification directly uses return data->line
2.8250_tegra Removes redundant label err_clkdisable
3.atmel_serial abandons the use of devm_clk_get_enabled interface for this file
4.mps2-uart abandons the use of devm_clk_get_enabled interface for run-time issues
5.st-asc abandons the use of devm_clk_get_enabled interface for this file
6.stm32-usart modifies the return method and removes unused labels

Lei Liu (5):
  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: owl-uart: Use devm_clk_get_enabled() helpers
  tty: stm32-usart: Use devm_clk_get_enabled() helpers

 drivers/tty/serial/8250/8250_ingenic.c  | 27 +++-------------------
 drivers/tty/serial/8250/8250_tegra.c    | 12 ++--------
 drivers/tty/serial/8250/8250_uniphier.c |  8 +------
 drivers/tty/serial/owl-uart.c           | 10 +--------
 drivers/tty/serial/stm32-usart.c        | 30 ++++---------------------
 5 files changed, 11 insertions(+), 76 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ