Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3726993rwd; Mon, 22 May 2023 19:41:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6urgLBTe3dEOuj9h7RwrPKa/0xf94kwXpxa/AO0EntmUzbYVexjLVKXy9bBkHf82fqNT0p X-Received: by 2002:a17:902:d4c6:b0:1a5:150f:8558 with SMTP id o6-20020a170902d4c600b001a5150f8558mr13467162plg.17.1684809662751; Mon, 22 May 2023 19:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684809662; cv=none; d=google.com; s=arc-20160816; b=C1m4pjjbScTOfTdwnuNC+lUFjB+fqrnSZntxhc8lndFPJGDAA971e8MOtCAg96O4a2 aACAvp0tiTH3vm/KvgcgIvEd1exKAQHBE+x4nET72h2IMwakn0dfAqVxYErLziW3ugwE G5XIkFB4qo2YjxRPmm147WtLV3BuaM3MTnCdMc/0J6QVKIiW8ytYg8N0AC03MB+5GrYC efzxB8HK+FQL1Jy38z2kWXLWa/VivGLL526riPW5M3cYsJFCDsC69q1Wmp1ifwo3DpGa Hxt7Bx9qHek13GqcbBsc+Sso2XrLxA76CKEm/C48q8hKXqnLNbQOXkG7TUyDRyvYgwbs S6hw== 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=XRT4HcqdgbgGFthyNnmxrdDmTFUoKsF9VyRNfLcNkuE=; b=XZbfd5O4SFip7MUXyxCzgD3t7khL0YYQ6j5vKDNJSqt84YEAVP+5ZnpREJAQOr9Tvw wGim94I9L/ODq2m0GRTtlZQiOVvWh/stj3GVuF9Q8rP/4o5emfRR52wTeC1nIBH2rkSW xR1cYGTH3j3syTJRBNJzhcPoo3v/iiDDrhAOMwwk0BuN0Xwpa35wUIM4TtwLMO/zezUe fl+fI4ExAk7c4DG0nX5aYACZqfHBmQ5LZc+dYjIsC8G+JsaUfMhACQbZG5rlPv3Oaw6R R3wUcUC6G0Pi9mQZg2ZWyE8hnz4CR78Vm0aWy3sWWvDY7FmOY7eNK7wTqoiyM3j5LGno 1igA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a170902f7d500b001aaea4707c1si1104155plw.99.2023.05.22.19.40.30; Mon, 22 May 2023 19:41:02 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234671AbjEWCd4 (ORCPT + 99 others); Mon, 22 May 2023 22:33:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbjEWCdz (ORCPT ); Mon, 22 May 2023 22:33:55 -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 72BFF185; Mon, 22 May 2023 19:33:51 -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 1q1HqE-00C99V-IG; Tue, 23 May 2023 10:33:39 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Tue, 23 May 2023 10:33:38 +0800 Date: Tue, 23 May 2023 10:33:38 +0800 From: Herbert Xu To: Stephen Rothwell , Conor Dooley Cc: Linux Crypto List , Huan Feng , Jia Jie Ho , Linux Kernel Mailing List , Linux Next Mailing List Subject: [PATCH] crypto: starfive - Depend on AMBA_PL08X instead of selecting it Message-ID: References: <20230522105257.562cb1ec@canb.auug.org.au> <20230523103637.20175fbc@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230523103637.20175fbc@canb.auug.org.au> X-Spam-Status: No, score=2.7 required=5.0 tests=BAYES_00,HELO_DYNAMIC_IPADDR2, RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS,TVD_RCVD_IP,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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-crypto@vger.kernel.org On Tue, May 23, 2023 at 10:36:37AM +1000, Stephen Rothwell wrote: > > That did not fix it :-( OK, this patch should fix it: ---8<--- A platform option like AMBA should never be selected by a driver. Use a dependency instead. Also remove the depenency on DMADEVICES because the driver builds just fine without it. Instead add a dependency on HAS_DMA for dma mapping support. Reported-by: Stephen Rothwell Reported-by: Conor Dooley Signed-off-by: Herbert Xu diff --git a/drivers/crypto/starfive/Kconfig b/drivers/crypto/starfive/Kconfig index 908c162ba79a..59002abcc0ad 100644 --- a/drivers/crypto/starfive/Kconfig +++ b/drivers/crypto/starfive/Kconfig @@ -4,14 +4,13 @@ config CRYPTO_DEV_JH7110 tristate "StarFive JH7110 cryptographic engine driver" - depends on (SOC_STARFIVE || COMPILE_TEST) && DMADEVICES + depends on SOC_STARFIVE || AMBA_PL08X || COMPILE_TEST + depends on HAS_DMA select CRYPTO_ENGINE select CRYPTO_HMAC select CRYPTO_SHA256 select CRYPTO_SHA512 select CRYPTO_SM3_GENERIC - select ARM_AMBA - select AMBA_PL08X help Support for StarFive JH7110 crypto hardware acceleration engine. This module provides acceleration for public key algo, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt