Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp656563iog; Thu, 30 Jun 2022 07:48:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tBA57LtckAsgdbpCQoPxxHBFJf+0nefj/ovWb6ukQ0iWy0Gz1+Pl+mmgiHECCHDjW4yQcA X-Received: by 2002:a17:90a:e4c6:b0:1ed:4ffb:11f8 with SMTP id e6-20020a17090ae4c600b001ed4ffb11f8mr10969603pju.150.1656600538790; Thu, 30 Jun 2022 07:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656600538; cv=none; d=google.com; s=arc-20160816; b=DKkgpDJDGpweyg54AILwdofF1bFAhq6wYUAie7gyqCGL2COziueipuf3S2UNvjDxbd XuIUwW4UkusKPA840lDSDxYYEVEL3jxlACbssBn5GT31csRhXhRbCLy6kmrmHDAPiLQG UHxbi1j8jOASu2zchyANm9w3FmFv9e1kn7aHShLS2LwMcENbWVANdMHLCQQqmMQyfAf0 xg2+RnBeKKJNliZkcXMg4IgpL1jJ+KBPkIcVODST+KqE4uOZbvT4f8ydjtmFeGGWc+us 1r0ISIx717aQhRB43qfsV3UCMRfYZFzg/9szlr8t/R1sexWdzSdiBKn4lgVoyC11Gsv7 KWbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=h5I54kNsTH2s2ciOHexU+iZ2FEzVCsqPdcPCraazqQE=; b=qPFV3a167KmgNlJqHJTJYC88gZ2Qcl0qwQ4DiOqQAJpmA6DlX2UuUKaFcTusq7WFOC uCIqPk8aIJ1sJfsD3PrJ6QAIcD6O2ONCU9nH4qoJIeYvMgzy3CmALx9PDOq7ORvjjcaK l+ZLj8DUXF2gineTU1xXR/jAsdl2H3KnOmOo8saNWXwa+bubiRSs5fNE5imfGeGQlwZy worTjX3g8jarHwWPDkLbjrI+dQyEgp5A1DBPGeaELNUDoeUS2wvIxMH2rnUmsDnd7e4t TLP9Wb7LKaUPl8Iy6N8DDD7kNpeTYm150uGRwuW+NpxZZSivTRSzzXMS13j/OV4kwCgL +jgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=k8mK5acH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f68-20020a636a47000000b0040c834e2cdbsi24011600pgc.746.2022.06.30.07.48.44; Thu, 30 Jun 2022 07:48:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=k8mK5acH; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235918AbiF3OhM (ORCPT + 99 others); Thu, 30 Jun 2022 10:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237183AbiF3Ogz (ORCPT ); Thu, 30 Jun 2022 10:36:55 -0400 Received: from mail-m973.mail.163.com (mail-m973.mail.163.com [123.126.97.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 503791AF23; Thu, 30 Jun 2022 07:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=h5I54 kNsTH2s2ciOHexU+iZ2FEzVCsqPdcPCraazqQE=; b=k8mK5acHl6BxS0WeZ+zlm 7RGujFIQVV/Z0t4Z+Eogm/b1syR4ekTjLKHf6oHPYaBn5x+6Ly/X0UA5TIPjo1aY rDo4rEiF1qaSRJb3syij1USHKvDzVB8SiCXcQdbtgONeJa7rk6BfBW+RvpmBYxAI YjNl7erT6ehR/5LBACporY= Received: from localhost.localdomain (unknown [123.112.69.106]) by smtp3 (Coremail) with SMTP id G9xpCgCHJJbFs71ikcHHMg--.62175S4; Thu, 30 Jun 2022 22:31:53 +0800 (CST) From: Jianglei Nie To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Jianglei Nie Subject: [PATCH] crypto: hisilicon/sec - fix inconsistent argument Date: Thu, 30 Jun 2022 22:31:32 +0800 Message-Id: <20220630143132.2180469-1-niejianglei2021@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: G9xpCgCHJJbFs71ikcHHMg--.62175S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrKFykXrWDAw13urWruF1fXrb_yoWDJFg_ua yUCF13Zr4UGw4qqw17tFZYvF1Yvw1rWF1fZF43try3t3yqvr4YgF1rZrs8CF4UC3yj9ryY 9ws7Gw18ZFyUWjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRZYFCPUUUUU== X-Originating-IP: [123.112.69.106] X-CM-SenderInfo: xqlhyxxdqjzvrlsqjii6rwjhhfrp/xtbBORkwjF-POQcyywAAsL X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The argument passed to sec_queue_aw_alloc() should be SEC_QUEUE_AW_FROCE_NOALLOC instead of SEC_QUEUE_AR_FROCE_NOALLOC. Signed-off-by: Jianglei Nie --- drivers/crypto/hisilicon/sec/sec_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/sec/sec_drv.c b/drivers/crypto/hisilicon/sec/sec_drv.c index c8de1b51c843..e75851326c1e 100644 --- a/drivers/crypto/hisilicon/sec/sec_drv.c +++ b/drivers/crypto/hisilicon/sec/sec_drv.c @@ -892,7 +892,7 @@ bool sec_queue_can_enqueue(struct sec_queue *queue, int num) static void sec_queue_hw_init(struct sec_queue *queue) { sec_queue_ar_alloc(queue, SEC_QUEUE_AR_FROCE_NOALLOC); - sec_queue_aw_alloc(queue, SEC_QUEUE_AR_FROCE_NOALLOC); + sec_queue_aw_alloc(queue, SEC_QUEUE_AW_FROCE_NOALLOC); sec_queue_ar_pkgattr(queue, 1); sec_queue_aw_pkgattr(queue, 1); -- 2.25.1