From: Sibi S <sibis@codeaurora.org>
To: dri-devel@lists.freedesktop.org, Archit Taneja <architt@codeaurora.org>
Subject: Re: [PATCH] drm/msm/dsi: Get byte_intf_clk only for versions that need it
Date: Wed, 21 Feb 2018 18:02:45 +0530 [thread overview]
Message-ID: <00f24256-b9bf-4b68-1a29-7e73fb67c1e3@codeaurora.org> (raw)
In-Reply-To: <1518417067-7808-1-git-send-email-architt@codeaurora.org>
Tested on db410c modetest runs fine now.
On 02/12/2018 12:01 PM, architt@codeaurora.org wrote:
> From: Archit Taneja <architt@codeaurora.org>
>
> Newer DSI host controllers (SDM845 in particular) require a new clock
> called byte_intf_clk. A recent patch tried to add this as an optional
> clock, but it still set 'ret' to an error number if it didn't find it.
> This breaks the host's probe for all previous DSI host versions.
>
> Instead of setting this up as an optional clock, try to get the clock
> only for the DSI version that supports it.
>
> Fixes: 56558fb ("drm/msm/dsi: Add byte_intf_clk")
> Signed-off-by: Archit Taneja <architt@codeaurora.org>
> ---
> drivers/gpu/drm/msm/dsi/dsi_host.c | 15 ++++++++++-----
> 1 file changed, 10 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
> index f675975..62ac614 100644
> --- a/drivers/gpu/drm/msm/dsi/dsi_host.c
> +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
> @@ -378,11 +378,16 @@ static int dsi_clk_init(struct msm_dsi_host *msm_host)
> goto exit;
> }
>
> - msm_host->byte_intf_clk = msm_clk_get(pdev, "byte_intf");
> - if (IS_ERR(msm_host->byte_intf_clk)) {
> - ret = PTR_ERR(msm_host->byte_intf_clk);
> - pr_debug("%s: can't find byte_intf clock. ret=%d\n",
> - __func__, ret);
> + if (cfg_hnd->major == MSM_DSI_VER_MAJOR_6G &&
> + cfg_hnd->minor >= MSM_DSI_6G_VER_MINOR_V2_2_1) {
> + msm_host->byte_intf_clk = msm_clk_get(pdev, "byte_intf");
> + if (IS_ERR(msm_host->byte_intf_clk)) {
> + ret = PTR_ERR(msm_host->byte_intf_clk);
> + pr_err("%s: can't find byte_intf clock. ret=%d\n",
> + __func__, ret);
> + goto exit;
> + }
> + } else {
> msm_host->byte_intf_clk = NULL;
> }
>
>
--
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc, is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
prev parent reply other threads:[~2018-02-21 12:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 6:31 [PATCH] drm/msm/dsi: Get byte_intf_clk only for versions that need it architt
2018-02-21 12:32 ` Sibi S [this message]
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=00f24256-b9bf-4b68-1a29-7e73fb67c1e3@codeaurora.org \
--to=sibis@codeaurora.org \
--cc=architt@codeaurora.org \
--cc=dri-devel@lists.freedesktop.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