clk: qcom: Add generic sync_state callback

Add generic sync_state function that can be used by qcom clock providers
(qcom_cc_sync_state). Currently this is just a simple wrapper around
clk_sync_state from the framework, but ultimately will contain
additional qcom-specific logic.

Change-Id: I936daafdd19cc7676daa4b9fbe712d9b3181395f
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
This commit is contained in:
Mike Tipton 2019-12-02 17:09:02 -08:00 committed by Mike Tipton
parent 1e204f604d
commit 3e035473b1
2 changed files with 8 additions and 0 deletions

View File

@ -350,4 +350,11 @@ int qcom_cc_probe_by_index(struct platform_device *pdev, int index,
}
EXPORT_SYMBOL_GPL(qcom_cc_probe_by_index);
void qcom_cc_sync_state(struct device *dev, const struct qcom_cc_desc *desc)
{
dev_info(dev, "sync-state\n");
clk_sync_state(dev);
}
EXPORT_SYMBOL(qcom_cc_sync_state);
MODULE_LICENSE("GPL v2");

View File

@ -74,4 +74,5 @@ extern int qcom_cc_probe(struct platform_device *pdev,
extern int qcom_cc_probe_by_index(struct platform_device *pdev, int index,
const struct qcom_cc_desc *desc);
extern const struct clk_ops clk_dummy_ops;
void qcom_cc_sync_state(struct device *dev, const struct qcom_cc_desc *desc);
#endif