Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1346599pxb; Wed, 10 Feb 2021 06:30:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlluudMYaKU4gFxwLoy14xomkZJgLQt1n61l4hc0QzztJ/zaGDRwPj4tMERI4XxOUBEfOZ X-Received: by 2002:a05:6402:31a3:: with SMTP id dj3mr3316573edb.172.1612967410283; Wed, 10 Feb 2021 06:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612967410; cv=none; d=google.com; s=arc-20160816; b=QSAAUiPFiWT+8XsAUM/0T/Rl3uPU6MDxGBgHhLu1tVF3/C9ToXX6DtPJy6BA64HP1C E/4wef7F23H3lt8ZOvG3NmxpVysuSutfXY581XYRRV48p80DXkXYycJWE71qQkJOdmQf MM+ryIp/5R6mMDKEODwrpJqYqpOp5LE1e+uqLRElkl3Ds1gWPg6rtVoO95NROtp1LUV9 jUSzN+1F+z4nxD+pjxKspmS1FDNUXN9dcQq7WRci8BaFLbKMusImT9U0Q0uGuVpfSYSq wNKzVBAtlmLjxliPTzw7aqHQzNdPL2tif5v3T4Q9HqxGG5huyPmWqE1ZvCpar8HNysVj MT7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4XM+OC4tEMQhllExIWHM2Z90/SpwG0aE0vvUDH0ec1c=; b=trS061sBT6Nc/rsxvqRYPtgDbz1qQi7cMWMoo2PewuS9X1SgLPULuXKzUC4lDQX4Q3 dLAlOE9b2zB6+wHr/VMTmvLNNIgupoP+xRtAdNWdXfH3ecRjRwmiOW/CQw6p8b081i8W WVJbMN84HF7Giq1rS0C9HiUc7WXE1yODFkXjpQzYGSUlmCmnCck5Q6RDygkpb4CTedK5 sJkwJWAjyYWhMt4KXUBz9Jlx6ceUp5iubyP3s4p1kQ9as2mRWVCXb1e1V0bigFL0wD1Z x25THl6K7ddrzF5tkyo9jKz1uUF8l/e97Tki1pKRs9kPxKcZqbBhszBAYQMJznZKfAIm sqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qcyDNs5c; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si1406915edy.511.2021.02.10.06.29.13; Wed, 10 Feb 2021 06:30:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qcyDNs5c; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhBJO0W (ORCPT + 99 others); Wed, 10 Feb 2021 09:26:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231553AbhBJO0T (ORCPT ); Wed, 10 Feb 2021 09:26:19 -0500 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E219C06174A for ; Wed, 10 Feb 2021 06:25:39 -0800 (PST) Received: by mail-wr1-x42b.google.com with SMTP id g10so2833833wrx.1 for ; Wed, 10 Feb 2021 06:25:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=4XM+OC4tEMQhllExIWHM2Z90/SpwG0aE0vvUDH0ec1c=; b=qcyDNs5cQ0Gxvt4YcpPKri0nPrNJWIL6mtGae+kml9AyzGfK+ORzRHgLg3PuxvKvOu DZfcqjGVFRcXVkTFVyfymASTAIZEspb/z4QQl8BtQlLwIAHed6ZA8OAQcAO4P5v4uJRq j/OhDGMAWQkN0U4YannT3lG4SJeZvbFatsy5ELrKu886meKkOMnbAh6WRRhl5wmZ/+yP FYq6foW2pb/9wEa6/ZpJOIqywykqDw7m+p+ekUEVrlhWDhEpiAieF3Earb1q310ZW6pl qnx6rg3HxbwP4oN+M++Bp5TyIlmxwo+P8mHmtHNJyTPjQIcX62gHSYqomAoeGt6I4Sdn slMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=4XM+OC4tEMQhllExIWHM2Z90/SpwG0aE0vvUDH0ec1c=; b=aXrYdexn51k/Cj1Axfo7kPjGYZNWeK1FGwFJqArN1rhIvNKC7jMDVXaD7wADvi+0rB 6yeKzoSpGgwhJn440FhU3ZSuT/d2cM/s2jBualrj34zu8c9yqJApJVvAqkx+qsfGXYXU QgLYOoFi5OPG54d9/5PaM6QOXzV9TbtrK8o8x3u6401BkC4nP/87SrDgvIyF1UAJW9W0 2akWq76Qe8pCKokco7bKSu1Fp3FZEK0RaqrldQerq8EA1Vn3n1YKTOsJcJPri6Ep9ABX 0O1gc6A6GDn7grZ/X0BJTHXacxQzF8u9Ze0bK7Yk0zMIdYvNco5BnHB9kcFZIXtxL1f4 dX1w== X-Gm-Message-State: AOAM531Bz3t5IQFzmqVIwFxTCHLfob4AntqulaB7GK6a3RA9iQ/ou191 CZOBp33SA3i/CKtEjdle8vI= X-Received: by 2002:adf:fe0d:: with SMTP id n13mr3951209wrr.258.1612967138014; Wed, 10 Feb 2021 06:25:38 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id 17sm2675288wmf.32.2021.02.10.06.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 06:25:37 -0800 (PST) Date: Wed, 10 Feb 2021 15:25:35 +0100 From: Corentin Labbe To: chenxiang Cc: clabbe@baylibre.com, gcherian@marvell.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linuxarm@openeuler.org, prime.zeng@huawei.com Subject: Re: [PATCH 4/4] crypto: allwinner - Fix the parameter of dma_unmap_sg() Message-ID: References: <1612853965-67777-1-git-send-email-chenxiang66@hisilicon.com> <1612853965-67777-5-git-send-email-chenxiang66@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1612853965-67777-5-git-send-email-chenxiang66@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le Tue, Feb 09, 2021 at 02:59:25PM +0800, chenxiang a ?crit : > From: Xiang Chen > > For function dma_unmap_sg(), the parameter should be number of > elements in the scatterlist prior to the mapping, not after the mapping. > So fix this usage. > > Signed-off-by: Xiang Chen > --- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 9 ++++++--- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 3 ++- > drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 9 ++++++--- > drivers/crypto/allwinner/sun8i-ss/sun8i-ss-hash.c | 3 ++- > 4 files changed, 16 insertions(+), 8 deletions(-) > Hello Acked-by: Corentin LABBE Tested-by: Corentin LABBE Tested-on: sun8i-a83t-bananapi-m3 Tested-on: sun50i-h6-pine-h64 Tested-on: sun50i-h6-orangepi-one-plus Thanks