From patchwork Tue Mar 3 13:21:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Hicks X-Patchwork-Id: 5922521 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 783F49F318 for ; Tue, 3 Mar 2015 13:21:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BC614202BE for ; Tue, 3 Mar 2015 13:21:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4665202B4 for ; Tue, 3 Mar 2015 13:21:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbbCCNVx (ORCPT ); Tue, 3 Mar 2015 08:21:53 -0500 Received: from mail-ig0-f173.google.com ([209.85.213.173]:40574 "EHLO mail-ig0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756061AbbCCNVw (ORCPT ); Tue, 3 Mar 2015 08:21:52 -0500 Received: by igal13 with SMTP id l13so27201472iga.5 for ; Tue, 03 Mar 2015 05:21:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=eNlnm+KuTOSHqhNb/Nbu21mvmQ7wlt87a7qNQS/3JG8=; b=rfctewrawSCqVTYO4oyT1HZkzxxFQ+5UyKWYRDP5Di5dt9wC8RqbklwMBoxekag4wq y8mxpH+RXbMXkjgj90BgojKDguBhOMuf6c+7ah5L5tpe50nrnbV7IKahEp7kpZYX5Fnx 8t/4B0uXLjl5C/BTho5nJpYlOrrH7gd2SE0wOT0ejgw+2sWyBUO6iSjObKiMs7uVbX7b T8xdq3LGP/WfFQtYFT86twjWYIMvNfd+1WMkORzN6GEIphW2E0xspAHc1FoZEUvpQ3i+ JXaSKHEqdZzquRmcYGZvX55mVYrBqcuB3Z/Bhj2+nagx52QRjEKDclBoycMwwpEI4zYX RX0g== X-Received: by 10.107.133.220 with SMTP id p89mr1618463ioi.63.1425388911903; Tue, 03 Mar 2015 05:21:51 -0800 (PST) Received: from p1022build.eng-services.ca (cmr-208-97-87-171.cr.net.cable.rogers.com. [208.97.87.171]) by mx.google.com with ESMTPSA id mi3sm8782809igb.13.2015.03.03.05.21.50 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 05:21:51 -0800 (PST) From: Martin Hicks To: Kim Phillips , Scott Wood , Kumar Gala Cc: linuxppc-dev@lists.ozlabs.org, linux-crypto@vger.kernel.org, =?UTF-8?q?Horia=20Geant=C4=83?= , Martin Hicks Subject: [PATCH v2 3/5] crypto: talitos: Fix off-by-one and use all hardware slots Date: Tue, 3 Mar 2015 08:21:35 -0500 Message-Id: <1425388897-5434-4-git-send-email-mort@bork.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1425388897-5434-1-git-send-email-mort@bork.org> References: <1425388897-5434-1-git-send-email-mort@bork.org> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The submission count was off by one. Signed-off-by: Martin Hicks --- drivers/crypto/talitos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 89cf4d5..7709805 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -2722,8 +2722,7 @@ static int talitos_probe(struct platform_device *ofdev) goto err_out; } - atomic_set(&priv->chan[i].submit_count, - -(priv->chfifo_len - 1)); + atomic_set(&priv->chan[i].submit_count, -priv->chfifo_len); } dma_set_mask(dev, DMA_BIT_MASK(36));