diff options
author | Anand Moon <linux.amoon@gmail.com> | 2024-12-02 18:11:42 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-01-14 00:10:38 +0300 |
commit | abdd4c8ea7d75308315a15cfb97d2eabfb4d052b (patch) | |
tree | e44de8f54a31296d1991fcae837fadae0c60f832 /tools/perf/scripts/python/stackcollapse.py | |
parent | fd46bc0e0bb3c6607363bd23f2b3c2a73dc75d66 (diff) | |
download | linux-abdd4c8ea7d75308315a15cfb97d2eabfb4d052b.tar.xz |
PCI: rockchip: Simplify clock handling by using clk_bulk*() functions
Currently, the driver acquires clocks and prepare/enable/disable/unprepare
the clocks individually thereby making the driver complex to read.
The driver can be simplified by using the clk_bulk*() APIs.
Use:
- devm_clk_bulk_get_all() API to acquire all the clocks
- clk_bulk_prepare_enable() to prepare/enable clocks
- clk_bulk_disable_unprepare() APIs to disable/unprepare them in bulk
Link: https://lore.kernel.org/r/20241202151150.7393-2-linux.amoon@gmail.com
Signed-off-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
[bhelgaas: squash error handling fix from https://lore.kernel.org/r/20250106153041.55267-1-linux.amoon@gmail.com]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions