Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4318056ybv; Tue, 25 Feb 2020 17:43:06 -0800 (PST) X-Google-Smtp-Source: APXvYqy4VAI2Ej94MKszgpchTCjY9mOs+npIDUfT4ZBlHDkmDTJDWE/WXqMimGzDzffBljAMbqkH X-Received: by 2002:a9d:798e:: with SMTP id h14mr1105265otm.257.1582681386022; Tue, 25 Feb 2020 17:43:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582681386; cv=none; d=google.com; s=arc-20160816; b=kaHpUppOHFvU0q3r4kgcEbewJMTFjwUK8ZA5WABvYuMfz9NMA0+FpWVCW628SR4rtm CXXOSV3G8xXesL/73uR7vp3Rp5hDrilC5oQXmTSZ2nroogJ7qmEoIxYzPogFiEN3rXcl uhLqqVunbM5lmKt7TPT4zJuLZkvq62U9QnyXR7/CQZIp2QimfYCk7+xpEZnrpUgUwQxO q9LYynoEQGfypZlXe6k6OxK+BZl1wJkqetCEGR0kQSemIIWeHv6w/Zt97v60oz4wTj1h DnQkTqd67xSuz4LLjSJ3jXNlEPGyh4ErWIA/AO2bjFTqXnPtJRq4MVJGM/Qv6+XRJxZ5 +VcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=ON3JeOiic0gofaBgrDtro7SP0U6GaTirXFMjdmCUzsE=; b=kvEw4ApiLPe5RnK97l63gA8n0d4VacdK8gmGFM18S6hUBoewBqhS/iD7rrfRnd+o7F kG58fcSR3fn/g3mki+zRuCgaZt7M1EqFdZQU3bvo6YlsXZ/4xb6wopMsYtuLvrLgy7FV w3e8T8b4w/rB3CqUoX7Ru90k/1WCMvjMq3RLazSsnng340dmlr60AITi/N3OyeLnrzpd 8QwzVrN9h5TsM7SxEZ0bswFk4wz539saPCijmAoXOVX1Zkv6CYptt/9AlkB0P52m2wzR o2OkoWSlXbk7SdEw5Y+f9Vsl7ov3oFr6920GKM7yqYag7kflWQUw/ytXu90k7eZyRn5o nBeA== 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 d8si377280otp.295.2020.02.25.17.42.47; Tue, 25 Feb 2020 17:43:06 -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 S1729465AbgBZBmp (ORCPT + 99 others); Tue, 25 Feb 2020 20:42:45 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11106 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729403AbgBZBmp (ORCPT ); Tue, 25 Feb 2020 20:42:45 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0084616CA8CEA96D3FCD; Wed, 26 Feb 2020 09:42:42 +0800 (CST) Received: from [127.0.0.1] (10.63.139.185) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Wed, 26 Feb 2020 09:42:34 +0800 Subject: Re: [PATCH -next] crypto: hisilicon - qm depends on UACCE To: Herbert Xu References: <20200225030356.44008-1-yaohongbo@huawei.com> <5E54DE89.2030703@hisilicon.com> <20200225102237.GA31328@gondor.apana.org.au> CC: Hongbo Yao , , , , , From: Zhou Wang Message-ID: <5E55CD0A.4060209@hisilicon.com> Date: Wed, 26 Feb 2020 09:42:34 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20200225102237.GA31328@gondor.apana.org.au> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2020/2/25 18:22, Herbert Xu wrote: > On Tue, Feb 25, 2020 at 04:44:57PM +0800, Zhou Wang wrote: >> >>> diff --git a/drivers/crypto/hisilicon/Kconfig b/drivers/crypto/hisilicon/Kconfig >>> index 8851161f722f..b35c2ec15bc2 100644 >>> --- a/drivers/crypto/hisilicon/Kconfig >>> +++ b/drivers/crypto/hisilicon/Kconfig >>> @@ -40,6 +40,7 @@ config CRYPTO_DEV_HISI_QM >>> tristate >>> depends on ARM64 || COMPILE_TEST >>> depends on PCI && PCI_MSI >>> + depends on UACCE >>> help >>> HiSilicon accelerator engines use a common queue management >>> interface. Specific engine driver may use this module. >>> >> >> Indeed, this driver does not depend on uacce fully, as if there is no uacce, it still can >> register to kernel crypto. >> >> Seems that changing uacce config to bool can avoid this problem. > > You shouldn't make it a bool. The standard way to solve this is to > add this: > > depends on UACCE || UACCE=n Thanks! Let's fix together with zip Kconfig. Best, Zhou > > Cheers, >