]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: renesas: Switch to clk_bulk API and store clocks in private data
authorTommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Wed, 7 Jan 2026 10:33:47 +0000 (11:33 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Jan 2026 14:54:26 +0000 (15:54 +0100)
commit579c7255922a3e0ba432eb608deb7d0fed896052
treece57c6f9166100edf4a7e3705f355796b92450bb
parent540a55a5bafd0ddbeb87672fe569c15954b47038
i3c: renesas: Switch to clk_bulk API and store clocks in private data

Replace individual devm_clk_get_enabled() calls with the clk_bulk API
and store the clock handles in the driver's private data structure.

All clocks required by the controller are now acquired and enabled using
devm_clk_bulk_get_all_enabled(), removing the need for per-SoC clock
handling and the renesas_i3c_config data.
The TCLK is accessed via a fixed index in the bulk clock array.

Simplify the code and prepare the driver for upcoming suspend/resume
support.

No functional change intended.

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Tommaso Merciai <tommaso.merciai.xr@bp.renesas.com>
Link: https://patch.msgid.link/1286f8600b542da55facf9920fed7c06b2b0e4d5.1767781092.git.tommaso.merciai.xr@bp.renesas.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/renesas-i3c.c