Re: [PATCH v5 08/17] spi: rockchip-sfc: Simplify clock handling with devm_clk_get_enabled()

Mark Brown <[email protected]>
Newsgroups org.ozlabs.lists.openbmc,dev.linux.lists.imx,org.infradead.lists.linux-arm-kernel,org.infradead.lists.linux-mediatek,org.infradead.lists.linux-riscv,org.infradead.lists.linux-rockchip,org.kernel.vger.linux-kernel,org.kernel.vger.linux-spi
Message-ID <[email protected]>
On Thu, Mar 19, 2026 at 10:04:04AM +0800, Pei Xiao wrote:
> Replace devm_clk_get() followed by clk_prepare_enable() with
> devm_clk_get_enabled() for both the interface clock "clk_sfc" and the
> AHB clock "hclk_sfc". This reduces boilerplate code and error handling,
> as the managed API automatically disables the clocks when the device is
> removed or if probe fails.

More runtime PM clocks.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmnBl+QACgkQJNaLcl1U
h9D4ZQf/acnRu0a4w6FJL3v12O42Uq6Atol8X/9TvvfEv8vy8qQx4u7LQH0wAamf
h5RLhWnd6nnJ0UEgty8mI544lxzYw4RRV37oEWa1YlNgWMLJk+5DOgR6Ez20DfdU
vVcwkiwN1T30Yx8oaZOvLVLtuKv3X31uzjSJLs4xVCFbvAJSqjhhnXrhBd+NqGgD
oLCC0q7KFUnaYaKyIBrZNm01jtXo6NntwK8dLHecJOuXmSAXpCnAM17uiYSQCuL9
d8SJVRLy9Dbwoz+RSHJJh97TvT0aW9by4xQABRV37vXmaj48N2TXJXgJj5xx+teB
Qqk5+3b+2LydR9XyiqHGRXrhmHGHQA==
=dt67
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.