From: Finley Xiao Date: Tue, 9 May 2017 13:53:37 +0000 (+0800) Subject: PM / devfreq: rockchip_dmc: avoid waiting for vop line flag indefinitely X-Git-Tag: release-20171130_firefly~4^2~617 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a22588c5e68ea8a3da6310cca0f1f761227726a;p=firefly-linux-kernel-4.4.55.git PM / devfreq: rockchip_dmc: avoid waiting for vop line flag indefinitely It may disable vop_crtc when scaling frequency, in this case, devfreq thread will wait for vop line flag indefinitely, the system will crash. Change-Id: I7043b285c329ff23e2fc9c5b5f3a165c37ef6378 Signed-off-by: Finley Xiao --- diff --git a/drivers/devfreq/rockchip_dmc.c b/drivers/devfreq/rockchip_dmc.c index 26ead87c138e..00cb8eba65c3 100644 --- a/drivers/devfreq/rockchip_dmc.c +++ b/drivers/devfreq/rockchip_dmc.c @@ -899,6 +899,9 @@ static int rockchip_dmcfreq_probe(struct platform_device *pdev) data->dev = dev; platform_set_drvdata(pdev, data); + if (rockchip_drm_register_notifier_to_dmc(data->devfreq)) + dev_err(dev, "drm fail to register notifier to dmc\n"); + if (rockchip_pm_register_notify_to_dmc(data->devfreq)) dev_err(dev, "pd fail to register notify to dmc\n");