[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <58C10571.9050107@samsung.com>
Date: Thu, 09 Mar 2017 16:34:09 +0900
From: Inki Dae <inki.dae@...sung.com>
To: David Binderman <dcb314@...mail.com>,
"jy0922.shim@...sung.com" <jy0922.shim@...sung.com>,
"sw0312.kim@...sung.com" <sw0312.kim@...sung.com>,
"kyungmin.park@...sung.com" <kyungmin.park@...sung.com>,
"airlied@...ux.ie" <airlied@...ux.ie>,
"kgene@...nel.org" <kgene@...nel.org>,
"krzk@...nel.org" <krzk@...nel.org>,
"javier@....samsung.com" <javier@....samsung.com>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-samsung-soc@...r.kernel.org"
<linux-samsung-soc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681:
suspicious mask ?
Hello David,
Thanks for report.
2017년 03월 06일 19:05에 David Binderman 이(가) 쓴 글:
> Hello there,
>
> linux-4.11-rc1/drivers/gpu/drm/exynos/exynos5433_drm_decon.c:681]: (warning) Result of operator '|' is always true if one operand is non-zero. Did you intend to use '&'?
>
Right. this is known issue and below patch fixes this,
http://www.spinics.net/lists/dri-devel/msg132589.html
This patch will go to -fixes.
> Source code is
>
> if (ctx->out_type | I80_HW_TRG) {
>
> Also in the same file:
>
> [drivers/gpu/drm/exynos/exynos5433_drm_decon.c:131]: (style) Same expression on both sides of '|'.
>
> Source code is
>
> writel(TRIGCON_TE_AUTO_MASK | TRIGCON_SWTRIGEN
> | TRIGCON_TE_AUTO_MASK | TRIGCON_SWTRIGEN,
In this case, only problem is two flags are set in duplicate. This should be cleaned up. Thanks. :)
>
> Regards
>
> David Binderman
>
>
Powered by blists - more mailing lists