Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp842803rwl; Fri, 24 Mar 2023 02:47:15 -0700 (PDT) X-Google-Smtp-Source: AK7set/TiQtVU8V9b141j1k17hzbySRrzdCA+n+8tx3Hbmhxg+84bBovExw7Gt/9UmV4XD30ibK1 X-Received: by 2002:a05:6a20:4fa3:b0:c7:6f26:ca0 with SMTP id gh35-20020a056a204fa300b000c76f260ca0mr1912904pzb.54.1679651235211; Fri, 24 Mar 2023 02:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679651235; cv=none; d=google.com; s=arc-20160816; b=en0sAvDwR1r2/N5l66set8jbZCY7st1fSTxr+fuLSdF/8f6EW9orVLsWU/xdk5V7fe g+tSbgwtiB32TMmd99PjET7pcrzTj4fkwe3dJ64bEhPam7noMlG+VoLbYITfO2oNLn/F jf7UK/nyeu4VoSDkAmR/OC7mOn+nUguIX0knQNFdynEhxHHUGJ50MYwgbTgBudhiaFCN xGE7LCn7EnkrgQRx6bl9CkCkFalcb0xnRKVD8kbJjgOvMJCimmfmXkdGp3R05Q+4INU7 xbehKhahirj4Z9Yyc3xJncKKNpPU8FhtVKtG7lhJGy/XHmsUAhqcEgtrY5U++8hiEmoC 5M1w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=zW73Mg8fBwUE71mpvWC4qyJZoJQ9acPO/OakDc1ZgE8=; b=tgWjssvYrtDoSbBrVNepI1deNctsPxjxzuDHX74cQFUzeCI+Y/xx5OIiEcC1ReRXu6 WB1bm1yWmBctqV5sp5Qg4Om+JP80HnpNU6SltGy9qVXVVqOu/FOevVJDtLqIwqvNBOSt jMFyxruUHAGDfkMHekPt1T9+C4N1fomYQjymWX0L5USd7Q/sOefLlewrO2g+BM/EA0qy +CWLpyIC7dI+HydlPvoxIRsl9MU3P7XIZ3jTOZsQ6lxT4Z0BFGSMlwUBmQCtTdSfPx5j JFZ/bG31h385ZY1dfuRESesMhuDH2YD5y97cfCxBscyRtaxtHaFUVQzLeBIdOsFkRm+q IydA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i187-20020a6287c4000000b006257bf333basi19949294pfe.65.2023.03.24.02.47.03; Fri, 24 Mar 2023 02:47:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbjCXJqD (ORCPT + 99 others); Fri, 24 Mar 2023 05:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231504AbjCXJpm (ORCPT ); Fri, 24 Mar 2023 05:45:42 -0400 Received: from 167-179-156-38.a7b39c.syd.nbn.aussiebb.net (167-179-156-38.a7b39c.syd.nbn.aussiebb.net [167.179.156.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB5B826C2F; Fri, 24 Mar 2023 02:44:58 -0700 (PDT) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1pfdxs-008EpY-MD; Fri, 24 Mar 2023 17:44:05 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 24 Mar 2023 17:44:04 +0800 Date: Fri, 24 Mar 2023 17:44:04 +0800 From: Herbert Xu To: Jia Jie Ho Cc: "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Emil Renner Berthing , Conor Dooley , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v3 4/4] crypto: starfive - Add hash and HMAC support Message-ID: References: <20230313135646.2077707-1-jiajie.ho@starfivetech.com> <20230313135646.2077707-5-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230313135646.2077707-5-jiajie.ho@starfivetech.com> X-Spam-Status: No, score=4.3 required=5.0 tests=HELO_DYNAMIC_IPADDR2, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: **** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 13, 2023 at 09:56:46PM +0800, Jia Jie Ho wrote: > > +static void starfive_hash_dma_callback(void *param) > +{ > + struct starfive_cryp_dev *cryp = param; > + > + complete(&cryp->tx_comp); > +} Please get rid of tx_comp and do the rest of the processing here. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt