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>
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;