From: zyw@rock-chips.com (Chris Zhong)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] drm/rockchip: cdn-dp: add more log for video config
Date: Wed, 8 Mar 2017 10:27:57 +0800 [thread overview]
Message-ID: <1488940077-22297-4-git-send-email-zyw@rock-chips.com> (raw)
In-Reply-To: <1488940077-22297-1-git-send-email-zyw@rock-chips.com>
In order to analyze some video config failed, add some useful
printouts.
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
---
drivers/gpu/drm/rockchip/cdn-dp-reg.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-reg.c b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
index 963d8ab..b14d211 100644
--- a/drivers/gpu/drm/rockchip/cdn-dp-reg.c
+++ b/drivers/gpu/drm/rockchip/cdn-dp-reg.c
@@ -671,6 +671,10 @@ int cdn_dp_config_video(struct cdn_dp_device *dp)
rem = do_div(symbol, 1000);
if (tu_size_reg > 64) {
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;
}
} while ((symbol <= 1) || (tu_size_reg - symbol < 4) ||
--
2.6.3
next prev parent reply other threads:[~2017-03-08 2:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 2:27 [PATCH 0/3] RK3399 cdd-dp patches Chris Zhong
2017-03-08 2:27 ` [PATCH 1/3] drm/rockchip: cdn-dp: return error code when clk_get_rate failed Chris Zhong
2017-03-08 2:27 ` [PATCH 2/3] drm/rockchip: cdn-dp: Correct PHY register address Chris Zhong
2017-03-08 2:27 ` Chris Zhong [this message]
2017-03-08 2:45 ` [PATCH 0/3] RK3399 cdd-dp patches Chris Zhong
2017-03-13 20:08 ` Sean Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488940077-22297-4-git-send-email-zyw@rock-chips.com \
--to=zyw@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox