From: Stephen Warren Subject: Re: [patch] crypto: tegra-aes - bitwise vs logical and Date: Tue, 20 Aug 2013 10:31:41 -0600 Message-ID: <521399ED.9030701@wwwdotorg.org> References: <20130820085447.GA20170@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 To: Dan Carpenter , Varun Wadekar Return-path: In-Reply-To: <20130820085447.GA20170-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-crypto.vger.kernel.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.