From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Tue, 20 Aug 2013 16:31:41 +0000 Subject: Re: [patch] crypto: tegra-aes - bitwise vs logical and Message-Id: <521399ED.9030701@wwwdotorg.org> List-Id: References: <20130820085447.GA20170@elgon.mountain> In-Reply-To: <20130820085447.GA20170-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Varun Wadekar Cc: Herbert Xu , "David S. Miller" , Grant Likely , Rob Herring , linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 08/20/2013 02:54 AM, Dan Carpenter wrote: > The bug here is that: > > while (eng_busy & (!icq_empty) & dma_busy) > > is never true because it's using bitwise instead of logical ANDs. The > other bitwise AND conditions work as intended but I changed them as well > for consistency. > > Signed-off-by: Dan Carpenter > --- > Static checker stuff. I don't have the hardware. Varun, can you please test the driver with this change applied and make sure it works correctly. If you could also update our internal testing wiki with the steps you use for this testing, that'd be great too. Thanks.