<!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>
<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></FONT></BODY></HTML>