Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6817827rwd; Tue, 6 Jun 2023 02:17:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ClTZrEutuk8ATjXIoB6woshdadUJNvVsGKGGH3RRnQtB/bgM2bNQh6NMS/FZ9/rq28XHL X-Received: by 2002:a05:6214:e66:b0:629:e646:bdad with SMTP id jz6-20020a0562140e6600b00629e646bdadmr1451219qvb.4.1686043067185; Tue, 06 Jun 2023 02:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686043067; cv=none; d=google.com; s=arc-20160816; b=qVBQa8635rc3qzIJh4Uz94GOul+M0TK1ZIae2AjT0xCtDKZFfPl+wf0omi1G/taijG QQigYCtWJ4sCIqRm9msfNrRQo/x0QuavBTdTZ83DDLrAY99kZdjbfZcwajjTFP+6iVtY PbSku7P1Bim1DZHG6LcxsW7yApV0Nr56VzQ4sJwJ1QV3iJDXtNTAfO4ph9IMiSTffOr4 S/NFaUbrGXfhDuVvnvNMqnYcbBOYlo5BHHGUVWvrukofS6eOhX/ALW87L6CUdQ0bYdhP +TyXRCbXuRFzWiDkP/IF/LK9ZuxwtfV/PlR6zNQZwQnsKHRYq3WJG7JJU8BawgIZAQTS Tpow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=VFYz1ijfFE84AuDl9PjukBdnCgj8uYqKM4cJxBczqFw=; b=n2J7QwHDREFCTPZq4W2W8ylMU1/WsdjbqA/NrW1M9CgE3sB9MfZgof0+AiiGhrcqW4 f1Sq4iVqmcXKKq3yg0tyZzPHhTcGXQ6NE16zXt6sKaN0jzXnTzVM6OmpmHPgeaxYN1n3 KQE+xaVSWbZAMbvXqK8400lVBHBeDaNOKRH2s6rUIL2GcDfzWG1hxVj/Uo1fBSaDvjsc T4tz6+K9qQbzMyannDkXO9UzwAbyOQvnsxTHp0nYPpAzNLtIkWQU8bN0oTZeSLm4oV6R BHx42iTsU6L6mfoJW/tG3Lc/Or6rqGipjzEEe2Zv2AF47N7Jd41D13hZF7fNAyx9zuPH PYOA== 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 im11-20020a056214246b00b006261aa14985si5968168qvb.213.2023.06.06.02.17.31; Tue, 06 Jun 2023 02:17:47 -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 S232769AbjFFJMc convert rfc822-to-8bit (ORCPT + 99 others); Tue, 6 Jun 2023 05:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232299AbjFFJMT (ORCPT ); Tue, 6 Jun 2023 05:12:19 -0400 Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73210109; Tue, 6 Jun 2023 02:12:18 -0700 (PDT) Received: by mail-yb1-f180.google.com with SMTP id 3f1490d57ef6-bb131cd7c4aso5079199276.1; Tue, 06 Jun 2023 02:12:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686042737; x=1688634737; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7+0vZf4sZHrRYSSyyJCG/B7w9fRCzQCnK8geH62rIys=; b=FwImVrDiSVBQANbLm0hAHYnopHqJPxh/wCwjSp46Zegptd3UEkCuKmKbteP1tewvcY eYz2aRioiNMSyxB4NOva6p0hOLi97yrhNj+sjpGeCdSV03A/Xh+Fp4UxrobTHaj/87NG BwKbYG4ne2fBq1jr5WEI1/vjxxOm1m2XMjS4/llhB9lpx2Lgmwey3mnH8Z2ZVh1gAacX G4NrggEKJ8ZtEUstUmqkImf8B6pl1eE2fB0vjK+OU8DmzOr/O49lVsEKwEcLfpHp8lMV ll3LdDxKLnHcBcc2wo7ZntErQhkAoiu7ol+fIgBwTOqQjc6PreoHLOptk5++/vtw2mYh 21WQ== X-Gm-Message-State: AC+VfDzKUziE5Exdc2nkNKkfXl4UpyuOTNofMT3zTXb9W8U9KbmkWPVO X2YlsHLPa77sgt6sf37XlVtm/i6FDyV3Eg== X-Received: by 2002:a81:8686:0:b0:565:d517:e714 with SMTP id w128-20020a818686000000b00565d517e714mr1318567ywf.25.1686042737377; Tue, 06 Jun 2023 02:12:17 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id t205-20020a8183d6000000b0055a416529bbsm3893447ywf.24.2023.06.06.02.12.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 02:12:17 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-565aa2cc428so53258617b3.1; Tue, 06 Jun 2023 02:12:17 -0700 (PDT) X-Received: by 2002:a81:4e0f:0:b0:55a:6f26:4fbf with SMTP id c15-20020a814e0f000000b0055a6f264fbfmr1179758ywb.35.1686042736916; Tue, 06 Jun 2023 02:12:16 -0700 (PDT) MIME-Version: 1.0 References: <20230522105257.562cb1ec@canb.auug.org.au> <20230523103637.20175fbc@canb.auug.org.au> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 6 Jun 2023 11:12:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] crypto: starfive - Depend on AMBA_PL08X instead of selecting it To: Herbert Xu Cc: Stephen Rothwell , Conor Dooley , Linux Crypto List , Huan Feng , Jia Jie Ho , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Herbert, On Tue, May 23, 2023 at 4:40 AM Herbert Xu wrote: > 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. FTR: arch/arm/mach-s3c/Kconfig.s3c64xx=config S3C64XX_PL080 arch/arm/mach-s3c/Kconfig.s3c64xx- def_bool DMADEVICES arch/arm/mach-s3c/Kconfig.s3c64xx: select AMBA_PL08X > > 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, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds