From patchwork Sun Jul 2 14:41:47 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: 106845 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp8292765obb; Sun, 2 Jul 2017 07:43:59 -0700 (PDT) X-Received: by 10.101.70.193 with SMTP id n1mr5653194pgr.249.1499006639697; Sun, 02 Jul 2017 07:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499006639; cv=none; d=google.com; s=arc-20160816; b=SuLpX1frdzT3DJTgIxqZtffORoQwLA77i7TAFUjGh3jqBWuh37CbN5xBLdGIzLdnDU tKT8uOEKWwYBOP6XQEwM/dklZl1tgJqVc5o7aQzoMOqUZ4r5QvBs6IviPd1F6XD/SG5E nMuXfWCVNmArdB8tmXaF2lsft9Kyj+3eDo0wET1nyvPqgVW37efkyIli6B875UrtQXrM /1dIqfIQYQzkJbwKc4FXkd+Nj4HPFm/5Z2eexQLDe6S4Ot9YoPpaqBKtNn8Rw11keG9T /qjvsuwcFc55fBYltK6KjOWeRlV2ftXmmmBMqcI0GcFLSfRXuGt0dkGBqkwHF/5VzQYg wp6Q== 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=zx0+h+IjV6gaQhmT2xYh+Lg7nXsrPccddwLSuEcrenY=; b=xkbZJfFzvMNmzPfIR1ZkYhynVQgyi2+FMmwsp+DMfqs2GeeD5MSzgCGqO91xhaAQRa 5TEDeMaJLi0dy9sfu+rHIEQqJUWrlLm6vJCgyCCIOowu/Z/hrsh3HeQFVeGJpX/eEUH1 JngkRy+7wzuuzg8bDeOJtdS8H2Lej46F8TkWzWFPnWPL8fTT5n2Qsk1oe3yizL7iNb8u 3PHF19W+SyX+f2IgsXT4wDarmcevZUu8ApfMNW9mxDkhTkVvwiohwTNGuj1FgPe4j4rr h3HfH7r6zK+hinMBc9kGkO2WJbZ2SM7DikcPIXIJV6FTgkV9V7TF0bdsKywOK0IGKrNs nvPg== 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.59; Sun, 02 Jul 2017 07:43:59 -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 S1752374AbdGBOnv (ORCPT + 25 others); Sun, 2 Jul 2017 10:43:51 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53646 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752315AbdGBOnp (ORCPT ); Sun, 2 Jul 2017 10:43:45 -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 D14BD15B2; Sun, 2 Jul 2017 07:43:34 -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 03BB93F578; Sun, 2 Jul 2017 07:43:26 -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 05/28] crypto: mediatek: use -EIOCBQUEUED for backlog indication Date: Sun, 2 Jul 2017 17:41:47 +0300 Message-Id: <1499006535-19760-6-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/mediatek/mtk-aes.c | 2 +- drivers/crypto/mediatek/mtk-sha.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.1.4 diff --git a/drivers/crypto/mediatek/mtk-aes.c b/drivers/crypto/mediatek/mtk-aes.c index 9e845e8..5254e13 100644 --- a/drivers/crypto/mediatek/mtk-aes.c +++ b/drivers/crypto/mediatek/mtk-aes.c @@ -1012,7 +1012,7 @@ static int mtk_aes_gcm_setkey(struct crypto_aead *aead, const u8 *key, AES_BLOCK_SIZE, data->iv); err = crypto_skcipher_encrypt(&data->req); - if (err == -EINPROGRESS || err == -EBUSY) { + if (err == -EINPROGRESS || err == -EIOCBQUEUED) { err = wait_for_completion_interruptible( &data->result.completion); if (!err) diff --git a/drivers/crypto/mediatek/mtk-sha.c b/drivers/crypto/mediatek/mtk-sha.c index 5f4f845..5c75b50 100644 --- a/drivers/crypto/mediatek/mtk-sha.c +++ b/drivers/crypto/mediatek/mtk-sha.c @@ -782,7 +782,7 @@ static int mtk_sha_finup(struct ahash_request *req) ctx->flags |= SHA_FLAGS_FINUP; err1 = mtk_sha_update(req); - if (err1 == -EINPROGRESS || err1 == -EBUSY) + if (err1 == -EINPROGRESS || err1 == -EIOCBQUEUED) return err1; /* * final() has to be always called to cleanup resources