Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp121236ybg; Mon, 8 Jun 2020 18:12:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0EDt7fw7FSQhp3U8GKlXqiKXFlw/nIKOS4ITlItaIdrCOfv+ZhLwKXIVU5IwdHDx2PA03 X-Received: by 2002:a17:906:ae5b:: with SMTP id lf27mr5516439ejb.156.1591665126111; Mon, 08 Jun 2020 18:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591665126; cv=none; d=google.com; s=arc-20160816; b=0sDiui00ypEwrOTKYZBahjkb7XvhwTa+sRzoCO4fkJNfgadk3D0r7p276Oazg/XyWP y1FENnLBGXe8fmiuFu11UVNlK0iF+WTrqTgYljjPyIod/nrS7xKlsI28Whc9ijFYVi3K 4kaEBxK5zN+LCkqc+2HeQpg0H+FTVCPFZNljI9YEd+2PsLdo5sRN66RsEZSKTcK+W6fB 7Ksv+ETMnatCimuXMY+ZIJiPL4oV2rpkIR9L8qYMYUVw8chILW9y5SiDJ1Bygf4/i+lE 3cnXZQd6jtbXF9baOOlLgtPyoNDawQTTHLAwUqZxaWu3Jm4g+fx+6l5xTXYTfbOFUYOJ vPiw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fnQ/zLE5t4RNAENmk2+aPXFZmGWFwbo+mzDHoq4ELNo=; b=QvDwpusGFwnF6IxYvBSk5IyL3iXCzkLkItSiam5bM6+SKH3SBEheyW8+yBwefgU6KD NEAbLUlL3VNHwnCFQOBL/vZXxClMc0eOJgtDMPditcTq//G9ZtiaEhxf32CMEtcGfCTF yXEU/4e6KgN+cUUOuBfH+68kdIgDWCggsxsONM890MynsQu/q/YTTbDse6eZTjpDR5jq WCzTKonAKicnoO4b5AjxD20CjWZ3kCyYA5RJsJU73tb3hYlJ25zlcH0GU0e1Dy9/OxgM l4qh01okcZ9Ln6hM9TdhxTD/2aU9dKzR2QsX4TsWpQF5ekUG5MxeCMqj0++SHcg3pNNS Hg1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CXZCmrsS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp4si12087185ejc.258.2020.06.08.18.11.43; Mon, 08 Jun 2020 18:12:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CXZCmrsS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388204AbgFIBJ6 (ORCPT + 99 others); Mon, 8 Jun 2020 21:09:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:49250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726746AbgFHXGU (ORCPT ); Mon, 8 Jun 2020 19:06:20 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB0E820814; Mon, 8 Jun 2020 23:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657579; bh=WEeDvDkZo6MB/KF4kzcZdE3zlcrJdIB/C1My+LZzDtE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CXZCmrsSTCJi85B2OgtfU1M/ujDWeniRCjwh6inwVNIWEFSjQaLbhCW6/0rX3iFKZ trWqocGeuLceRlwhWSNjz6rUPgu2zuZxKW7sNinVcAyKJvdxVdnJF1VXFrXDSh5p45 oyWonD8uIcc1wNBOIrErJZWtG9sCHcAz7hlLlNEc= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Arnd Bergmann , Tom Lendacky , Herbert Xu , Sasha Levin , linux-crypto@vger.kernel.org Subject: [PATCH AUTOSEL 5.7 009/274] crypto: ccp -- don't "select" CONFIG_DMADEVICES Date: Mon, 8 Jun 2020 19:01:42 -0400 Message-Id: <20200608230607.3361041-9-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit eebac678556d6927f09a992872f4464cf3aecc76 ] DMADEVICES is the top-level option for the slave DMA subsystem, and should not be selected by device drivers, as this can cause circular dependencies such as: drivers/net/ethernet/freescale/Kconfig:6:error: recursive dependency detected! drivers/net/ethernet/freescale/Kconfig:6: symbol NET_VENDOR_FREESCALE depends on PPC_BESTCOMM drivers/dma/bestcomm/Kconfig:6: symbol PPC_BESTCOMM depends on DMADEVICES drivers/dma/Kconfig:6: symbol DMADEVICES is selected by CRYPTO_DEV_SP_CCP drivers/crypto/ccp/Kconfig:10: symbol CRYPTO_DEV_SP_CCP depends on CRYPTO crypto/Kconfig:16: symbol CRYPTO is selected by LIBCRC32C lib/Kconfig:222: symbol LIBCRC32C is selected by LIQUIDIO drivers/net/ethernet/cavium/Kconfig:65: symbol LIQUIDIO depends on PTP_1588_CLOCK drivers/ptp/Kconfig:8: symbol PTP_1588_CLOCK is implied by FEC drivers/net/ethernet/freescale/Kconfig:23: symbol FEC depends on NET_VENDOR_FREESCALE The LIQUIDIO driver causing this problem is addressed in a separate patch, but this change is needed to prevent it from happening again. Using "depends on DMADEVICES" is what we do for all other implementations of slave DMA controllers as well. Fixes: b3c2fee5d66b ("crypto: ccp - Ensure all dependencies are specified") Signed-off-by: Arnd Bergmann Acked-by: Tom Lendacky Signed-off-by: Herbert Xu Signed-off-by: Sasha Levin --- drivers/crypto/ccp/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig index e0a8bd15aa74..32268e239bf1 100644 --- a/drivers/crypto/ccp/Kconfig +++ b/drivers/crypto/ccp/Kconfig @@ -10,10 +10,9 @@ config CRYPTO_DEV_CCP_DD config CRYPTO_DEV_SP_CCP bool "Cryptographic Coprocessor device" default y - depends on CRYPTO_DEV_CCP_DD + depends on CRYPTO_DEV_CCP_DD && DMADEVICES select HW_RANDOM select DMA_ENGINE - select DMADEVICES select CRYPTO_SHA1 select CRYPTO_SHA256 help -- 2.25.1