RFC Add devm_clk_bulk_get_optional_enable() helper and use in AXI Ethernet driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | clk: Add devm_clk_bulk_get_optional_enable() helperdrivers/ include/ | +73 | 1 reply | |
| 2/2 | net: axienet: Fix resource release orderingdrivers/ | +27 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Sean Anderson | Brian Masney |
|---|---|---|
| 1/2 | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/2] Add devm_clk_bulk_get_optional_enable() helper and use in AXI Ethernet driver
This patch series introduces a new managed clock framework helper function and demonstrates its usage in AXI ethernet driver.
Device drivers frequently need to get optional bulk clocks, prepare them, and enable them during probe, while ensuring automatic cleanup on device unbind. Currently, this requires three separate operations with manual cleanup handling.
The new devm_clk_bulk_get_optional_enable() helper combines these operations into a single managed call, eliminating boilerplate code and following the established pattern of devm_clk_bulk_get_all_enabled().
Note:
Prepared this series as per mainline discussion here:
https://lore.kernel.org/all/[email protected]
Sean Anderson (1):
net: axienet: Fix resource release ordering
Suraj Gupta (1):
clk: Add devm_clk_bulk_get_optional_enable() helper
drivers/clk/clk-devres.c | 50 +++++++++++ .../net/ethernet/xilinx/xilinx_axienet_main.c | 83 ++++++------------- include/linux/clk.h | 23 +++++ 3 files changed, 100 insertions(+), 56 deletions(-)
Signature · 1 line
2.25.1