<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello there,</p>
<p><br>
</p>
<p>Code I looked at is in linux-4.14-rc6, released 20171023, so reasonably</p>
<p>up to date.</p>
<p><br>
</p>
<p>I did a further check on <span>github.com/torvalds/linux</span> and the code</p>
<p>looks wrong there, too.</p>
<p><br>
</p>
<p>So I don't see the fix you mentioned in either of the places I looked.</p>
<p><br>
</p>
<p>Regards</p>
<p><br>
</p>
<p>David Binderman<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Jani Nikula <jani.nikula@linux.intel.com><br>
<b>Sent:</b> 24 October 2017 08:54<br>
<b>To:</b> David Binderman; patrik.r.jakobsson@gmail.com; airlied@linux.ie; dri-devel@lists.freedesktop.org; linux-kernel@vger.kernel.org<br>
<b>Subject:</b> Re: drivers/gpu/drm/gma500/mdfld_intel_display.c:102:37: warning: bitwise comparison always evaluates to false [-Wtautological-compare]</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">On Mon, 23 Oct 2017, David Binderman <dcb314@hotmail.com> wrote:<br>
> Hello there,<br>
><br>
> Source code is<br>
><br>
> if ((temp & PIPEACONF_PIPE_STATE) == 1)<br>
> break;<br>
><br>
> but<br>
><br>
> $ fgrep PIPEACONF_PIPE_STATE `find drivers/gpu/drm/gma500 -name \*.h -print`<br>
> drivers/gpu/drm/gma500/psb_intel_reg.h:#define PIPEACONF_PIPE_STATE (1 << 30)<br>
> $ <br>
><br>
> Suggest new code<br>
><br>
> if ((temp & PIPEACONF_PIPE_STATE) != 0)<br>
> break;<br>
<br>
Suggest looking at latest sources. ;)<br>
<br>
Fixed by 67a3b63a54cb ("drm: gma500: fix logic error").<br>
<br>
BR,<br>
Jani.<br>
<br>
-- <br>
Jani Nikula, Intel Open Source Technology Center<br>
</div>
</span></font></div>
</div>
</body>
</html>