<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=305083813-27112008>Applied in 1775.</SPAN></FONT></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ofw-bounces@lists.openfabrics.org
[mailto:ofw-bounces@lists.openfabrics.org] <B>On Behalf Of </B>Leonid
Keller<BR><B>Sent:</B> Sunday, November 23, 2008 9:13 PM<BR><B>To:</B>
ofw@lists.openfabrics.org<BR><B>Subject:</B> [ofw][patch] bugfix in CMD
interface<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<P><FONT face=Arial><FONT size=2>[MTHCA] bugfix in CMD interface: wait for GO
bit before issuing command in polling mode.<SPAN class=107231119-23112008>
[mlnx: 3313]</SPAN></FONT></FONT></P></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Index:
mthca/kernel/mthca_cmd.c<BR>===================================================================<BR>---
mthca/kernel/mthca_cmd.c (revision 1765)<BR>+++
mthca/kernel/mthca_cmd.c (working copy)<BR>@@ -259,10 +259,16
@@<BR> <BR> down(&dev->cmd.hcr_mutex);<BR> <BR>- if
(event && wait_go_bit(dev,GO_BIT_TIMEOUT)) {<BR>- err =
-EAGAIN;<BR>- goto out;<BR>- }<BR>+ if
(event)<BR>+ if (wait_go_bit(dev,GO_BIT_TIMEOUT))
{<BR>+ err = -EAGAIN;<BR>+ goto
out;<BR>+ }<BR>+ else<BR>+ if (go_bit(dev))
{<BR>+ err = -EAGAIN;<BR>+ goto
out;<BR>+ }<BR> <BR> /*<BR> * We use
writel (instead of something like
memcpy_toio)<BR></DIV></BLOCKQUOTE></FONT></BODY></HTML>