Skip to content
Snippets Groups Projects
Commit f13289c9 authored by Myron Stowe's avatar Myron Stowe
Browse files

PCI: rockchip: Simplify clock handling by using clk_bulk*() functions

JIRA: https://issues.redhat.com/browse/RHEL-83611
Upstream Status: abdd4c8ea7d75308315a15cfb97d2eabfb4d052b

commit abdd4c8ea7d75308315a15cfb97d2eabfb4d052b
Author: Anand Moon <linux.amoon@gmail.com>
Date:   Mon Dec 2 20:41:42 2024 +0530

    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: default avatarAnand Moon <linux.amoon@gmail.com>
Signed-off-by: default avatarLorenzo 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: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Signed-off-by: default avatarMyron Stowe <mstowe@redhat.com>
parent 440c6a83
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment