Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp196780ybv; Wed, 12 Feb 2020 22:18:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxqHgu94RTn1P0AUOAtDexnEWOvVRVk5nPgNdjtshA6gcP6IMHdyhdgWQIFFT51xV4GsWIA X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr12065865otp.108.1581574723727; Wed, 12 Feb 2020 22:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581574723; cv=none; d=google.com; s=arc-20160816; b=o7hSGGj4urFAJ0GDft/TJtjcRhkqGFOP3aoVyJerSmRaaZED5E7hu97uOKH234BFqV cVPIHftDs+n33KoRErhb0gOzYpKN5HpDDJ1VZ5R3kgdSJ09/P+uxGAJCwxSI+Nv2c8YM POJFXfPRkwgn7+Pmn6cuWawV0OKV1nCbus2W6MN/6FqIO8ZbSWqxSGJnwcdsfzw8EFCT 7UPMxR6b75V8KtEbpYLANCaBnu7kskjXSGoaM4Y5c42eKLDOGReftd00CoKCFhquoE/c TDUuBETHysxYRt0yaEGieJUiMo0OzNokFG6hSD0wyBjNZS5pI1G/E8PCCvI5qzU8cJ66 7ltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8AI86MCusexeHyOyHeSFW5QAql9fLaUxqqlhgcpA8b4=; b=VJywmCoLPle35Zs1DOGBxDFYlc6d4l74Nfp3dqZ0G+vo+4vW+FRstZvmIPONJhxb38 3j0g3+HuPp6PZoWDRDFVEaK/FEbXiPH3T83rb5+3/YqgIjWwI5PBhHH72t82G0OABHuY 5s7LjZtBj+Jx1/qPZjsqe9bDhx21o7mw+7P0iR0eexKiK5S6YYP3Tw6e0A4JjClQ1cLT PK/KX5iaTgnzpvqdieTMNd9jDttGhVTz1hCiVbQpVfCf7G/zjM6qbF+F/O7TVQpUl2dg pTdTz9e4luL6l/BL2w3kIF87m1EaQWWKxoy8b16S6q23BEatWJcAm3PmSOYy6iQ3q0tv 9JjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 17si696435otu.58.2020.02.12.22.18.23; Wed, 12 Feb 2020 22:18:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729474AbgBMGSW (ORCPT + 99 others); Thu, 13 Feb 2020 01:18:22 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:37868 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgBMGSW (ORCPT ); Thu, 13 Feb 2020 01:18:22 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1j27pG-00036J-Tm; Thu, 13 Feb 2020 14:18:14 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1j27pB-0001Lh-02; Thu, 13 Feb 2020 14:18:09 +0800 Date: Thu, 13 Feb 2020 14:18:08 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Baolin Wang , Ard Biesheuvel , Corentin Labbe , Horia Geanta , Maxime Coquelin , Alexandre Torgue , Maxime Ripard , Aymen Sghaier , "David S. Miller" , Silvano Di Ninno , Franck Lenormand , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx Subject: Re: [PATCH v3 1/2] crypto: engine - support for parallel requests Message-ID: <20200213061808.t6udjbgskc2hs7sa@gondor.apana.org.au> References: <1581078974-14778-1-git-send-email-iuliana.prodan@nxp.com> <1581078974-14778-2-git-send-email-iuliana.prodan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1581078974-14778-2-git-send-email-iuliana.prodan@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Feb 07, 2020 at 02:36:13PM +0200, Iuliana Prodan wrote: > > +start_request: > + /* If hardware is busy, do not send any request */ > + if (engine->can_enqueue_more) { > + if (!engine->can_enqueue_more(engine)) > + goto out; Instead of a driver callback I'd rather the driver called into the engine telling it to stop/start, similar to how net drivers work. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt