PM / devfreq: rockchip_dmc: avoid waiting for vop line flag indefinitely
authorFinley Xiao <finley.xiao@rock-chips.com>
Tue, 9 May 2017 13:53:37 +0000 (21:53 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 11 May 2017 06:47:27 +0000 (14:47 +0800)
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 <finley.xiao@rock-chips.com>
drivers/devfreq/rockchip_dmc.c

index 26ead87c138e25f38a59207727f1c6538550756d..00cb8eba65c3cab27fe9cb3464cba9dc958864d4 100644 (file)
@@ -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");