]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: dsi: limit dsi sync timeout.
authorPrafull Suryawanshi <prafulls@nvidia.com>
Mon, 17 Aug 2015 09:16:42 +0000 (14:46 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 14 Oct 2015 00:07:29 +0000 (17:07 -0700)
As for hawkeye panel, dsi needs commands while shutdown,
dsi syncpoint timeout causing shutdown to stall. To unblock
it, limiting the timeout for the dsi sync writes. Earlier
it was max, now changing it to 500 msec. This is safe to
detect faiure as dsi sync write atmost takes 60 msec.

bug 200124422

Change-Id: I706498d566fdf0d9d4443452b1dacf24a759a07e
Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Reviewed-on: http://git-master/r/785188
(cherry picked from commit dfb766b06b3a2663501b11e9d8e4f24a3cdb5153)
Reviewed-on: http://git-master/r/815058
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/video/tegra/dc/dsi.c

index a0e26c44cc4a1c65869d370eaa78817c6797d6ed..1b6ab50a504184738638f92dd0c0129d2d9b4b7e 100644 (file)
@@ -489,7 +489,7 @@ static int __maybe_unused tegra_dsi_syncpt
                tegra_dsi_controller_writel(dsi, val, DSI_INCR_SYNCPT, link_id);
 
        ret = nvhost_syncpt_wait_timeout_ext(dsi->dc->ndev, dsi->syncpt_id,
-               dsi->syncpt_val + 1, (u32)MAX_SCHEDULE_TIMEOUT, NULL, NULL);
+               dsi->syncpt_val + 1, msecs_to_jiffies(500), NULL, NULL);
        if (ret < 0) {
                dev_err(&dsi->dc->ndev->dev, "DSI sync point failure\n");
                goto fail;