The s5p-cec driver has a few places that touch hdmicec clk:

static int s5p_cec_probe(struct platform_device *pdev)
{
        ...
        cec->clk = devm_clk_get(dev, "hdmicec");
        if (IS_ERR(cec->clk))
                return PTR_ERR(cec->clk);
        ...
}

static int __maybe_unused s5p_cec_runtime_suspend(struct device *dev)
{
        struct s5p_cec_dev *cec = dev_get_drvdata(dev);

        clk_disable_unprepare(cec->clk);
        return 0;
}

static int __maybe_unused s5p_cec_runtime_resume(struct device *dev)
{
        struct s5p_cec_dev *cec = dev_get_drvdata(dev);
        int ret;

        ret = clk_prepare_enable(cec->clk);
        if (ret < 0)
                return ret;
        return 0;
}

Is it ok to enable/disable clock in rusume/suspend only?
Or have I missed anything?

--
Thank you,
Alexey Khoroshilov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to