public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Abhinav Kumar <abhinavk@codeaurora.org>
To: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Rob Clark <robdclark@gmail.com>,
	freedreno@lists.freedesktop.org,
	Archit Taneja <architt@codeaurora.org>,
	David Airlie <airlied@linux.ie>,
	linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	Jordan Crouse <jcrouse@codeaurora.org>,
	Sibi Sankar <sibis@codeaurora.org>,
	Daniel Vetter <daniel@ffwll.ch>,
	Chandan Uddaraju <chandanu@codeaurora.org>,
	Sean Paul <sean@poorly.run>, Daniel Mack <daniel@zonque.org>
Subject: Re: [Freedreno] [PATCH] drm/msm: check for equals 0 only
Date: Thu, 25 Apr 2019 15:52:50 -0700	[thread overview]
Message-ID: <7dc496f1663fa788977b8b00bce9d695@codeaurora.org> (raw)
In-Reply-To: <1556201031-3676-1-git-send-email-hofrat@osadl.org>

On 2019-04-25 07:03, Nicholas Mc Guire wrote:
> wait_for_completion_timeout() returns 0 on timeout and aleast 1 
> otherwise
> so checking for < makes no sense here.
> 
> Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org>
> ---
> 
> Problem located with an experimental coccinelle script
> 
> While this check does no harm in this form - it should be fixed anyway
> to comply with the API see: kernel/sched/completion.c
> 
> Also noticed that get_maintainer.pl will not list 
> linux-kernel@vger.kernel.org
> when run on drivers/gpu/drm/msm/dsi/dsi_host.c - is that intentional ?
> 
> Patch was compile-tested with: qcom_defconfig (implies DRM_MSM_DSI=y)
> 
> Patch is against v5.1-rc6 (localversion-next is next-20190424)
> 
>  drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c
> b/drivers/gpu/drm/msm/dsi/dsi_host.c
> index 610183d..dc16067 100644
> --- a/drivers/gpu/drm/msm/dsi/dsi_host.c
> +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
> @@ -1049,7 +1049,7 @@ static void dsi_wait4video_done(struct
> msm_dsi_host *msm_host)
>  	ret = wait_for_completion_timeout(&msm_host->video_comp,
>  			msecs_to_jiffies(70));
> 
> -	if (ret <= 0)
> +	if (ret == 0)
>  		DRM_DEV_ERROR(dev, "wait for video done timed out\n");
> 
>  	dsi_intr_ctrl(msm_host, DSI_IRQ_MASK_VIDEO_DONE, 0);

  reply	other threads:[~2019-04-25 22:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 14:03 [PATCH] drm/msm: check for equals 0 only Nicholas Mc Guire
2019-04-25 22:52 ` Abhinav Kumar [this message]
2019-04-26  0:02 ` Rob Clark

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=7dc496f1663fa788977b8b00bce9d695@codeaurora.org \
    --to=abhinavk@codeaurora.org \
    --cc=airlied@linux.ie \
    --cc=architt@codeaurora.org \
    --cc=chandanu@codeaurora.org \
    --cc=daniel@ffwll.ch \
    --cc=daniel@zonque.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=hofrat@osadl.org \
    --cc=jcrouse@codeaurora.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robdclark@gmail.com \
    --cc=sean@poorly.run \
    --cc=sibis@codeaurora.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