From patchwork Sun Jul 2 14:41:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 106844 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp8292749obb; Sun, 2 Jul 2017 07:43:59 -0700 (PDT) X-Received: by 10.99.51.142 with SMTP id z136mr5618985pgz.275.1499006638943; Sun, 02 Jul 2017 07:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499006638; cv=none; d=google.com; s=arc-20160816; b=JeRizetmw05XuGTLsKhtELQWtYjHoy102q1NgiN4rp5yq+I4BA9PW9MOm7Z7gejLA+ rl8hbTN1J757dPOUMDrj98ZBwjNAzyhT2qFGUbLTQzCheH1+vN4u/8YPggL/f0W6Yul2 Sqtzb4rYPMEygyeViYmNbpUkwuC6lFJrR9p1DhGqtklecYaHx8yyS+nbA3umpoHxogoN lLkowCrMJ4qaJrTNrtENWudUZw7sEwp6pX60A63m90wVenLNFQb32tKlqA9fAa+WGeIh EgXOJVugcqjeYHPoqgmnONyvIA69KJ9Et1TYtHpwWv7hfKAwTOmPFMk6jOuWv1EeQNwE okZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=nUmlO6ReVFrVtffumYqw03nAxThJjp1o/iZ22srjGro=; b=m3WYRgqxtHCh9Nbkoavu7nB1CN0DvucF9SvphMTURy0KdpvJIe/sybwskVUeUoyNXd xxUtDi90t+YT60pQBtIkPYlprxxTz/JSoxxfoQoq426K5/0kXx3QPKrLHyJ0c6Pfh/2q ocwkVdiK9yWMludTU0NRwrTc+i9r2AUsY31PrzzGfT3k/Uwp3lG2Eha7dtR+jjzyIFt7 IT1Gj5i4ZUqBxifHKCCalu39y/L1jh4bSlR/f2VLA48L0499xuHq2zxcWGRosIzygw1A uW8Ut3+7+PWBp3RsK8LdO+rsPr3qkW+50o7baJg+1GtFd9YBYAANoSfvHsw6oNUPcLfH TMow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16si10183773pfe.261.2017.07.02.07.43.58; Sun, 02 Jul 2017 07:43:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752305AbdGBOni (ORCPT + 25 others); Sun, 2 Jul 2017 10:43:38 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53584 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752214AbdGBOn1 (ORCPT ); Sun, 2 Jul 2017 10:43:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E28C4344; Sun, 2 Jul 2017 07:43:21 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 14F0A3F578; Sun, 2 Jul 2017 07:43:13 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Jonathan Corbet , David Howells , Tom Lendacky , Gary Hook , Boris Brezillon , Arnaud Ebalard , Matthias Brugger , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li , Steve French , "Theodore Y. Ts'o" , Jaegeuk Kim , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-raid@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fscrypt@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org Cc: Ofir Drang Subject: [PATCH v3 04/28] crypto: marvell/cesa: use -EIOCBQUEUED for backlog indication Date: Sun, 2 Jul 2017 17:41:46 +0300 Message-Id: <1499006535-19760-5-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499006535-19760-1-git-send-email-gilad@benyossef.com> References: <1499006535-19760-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace -EBUSY with -EIOCBQUEUED for backlog queueing indication as part of new API. Signed-off-by: Gilad Ben-Yossef --- This patch should be squashed with the first patch in the series when applied. drivers/crypto/marvell/cesa.c | 2 +- drivers/crypto/marvell/cesa.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.1.4 diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 6e7a5c7..5a0f7d1 100644 --- a/drivers/crypto/marvell/cesa.c +++ b/drivers/crypto/marvell/cesa.c @@ -184,7 +184,7 @@ int mv_cesa_queue_req(struct crypto_async_request *req, ret = crypto_enqueue_request(&engine->queue, req); if ((mv_cesa_req_get_type(creq) == CESA_DMA_REQ) && (ret == -EINPROGRESS || - (ret == -EBUSY && req->flags & CRYPTO_TFM_REQ_MAY_BACKLOG))) + ret == -EIOCBQUEUED)) mv_cesa_tdma_chain(engine, creq); spin_unlock_bh(&engine->lock); diff --git a/drivers/crypto/marvell/cesa.h b/drivers/crypto/marvell/cesa.h index b7872f6..4ca755f 100644 --- a/drivers/crypto/marvell/cesa.h +++ b/drivers/crypto/marvell/cesa.h @@ -763,7 +763,7 @@ static inline int mv_cesa_req_needs_cleanup(struct crypto_async_request *req, * the backlog and will be processed later. There's no need to * clean it up. */ - if (ret == -EBUSY && req->flags & CRYPTO_TFM_REQ_MAY_BACKLOG) + if (ret == -EIOCBQUEUED) return false; /* Request wasn't queued, we need to clean it up */