mirror of https://gitee.com/openkylin/linux.git
drm/rockchip: cdn-dp: add more log for video config
In order to analyze some video config failed, add some useful printouts. Signed-off-by: Chris Zhong <zyw@rock-chips.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1488940077-22297-4-git-send-email-zyw@rock-chips.com
This commit is contained in:
parent
05c00c2f19
commit
9346ab7d72
|
@ -671,6 +671,10 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
|
||||||
rem = do_div(symbol, 1000);
|
rem = do_div(symbol, 1000);
|
||||||
if (tu_size_reg > 64) {
|
if (tu_size_reg > 64) {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
DRM_DEV_ERROR(dp->dev,
|
||||||
|
"tu error, clk:%d, lanes:%d, rate:%d\n",
|
||||||
|
mode->clock, dp->link.num_lanes,
|
||||||
|
link_rate);
|
||||||
goto err_config_video;
|
goto err_config_video;
|
||||||
}
|
}
|
||||||
} while ((symbol <= 1) || (tu_size_reg - symbol < 4) ||
|
} while ((symbol <= 1) || (tu_size_reg - symbol < 4) ||
|
||||||
|
|
Loading…
Reference in New Issue