From patchwork Wed Jan 11 13:50:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9510109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1984F601E7 for ; Wed, 11 Jan 2017 13:52:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0539028620 for ; Wed, 11 Jan 2017 13:52:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE2F428637; Wed, 11 Jan 2017 13:52:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7B81928620 for ; Wed, 11 Jan 2017 13:52:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRJJq-0005ZU-3R; Wed, 11 Jan 2017 13:52:02 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRJJm-0005Mu-8t; Wed, 11 Jan 2017 13:52:00 +0000 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lla0h-1czHLa2tRn-00bHHW; Wed, 11 Jan 2017 14:51:13 +0100 From: Arnd Bergmann To: Herbert Xu Subject: [PATCH 1/2] crypto: mediatek - remove ARM dependencies Date: Wed, 11 Jan 2017 14:50:19 +0100 Message-Id: <20170111135104.3961730-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:kg2JRwrFFHAV53d9T6MvSJfO4Q8dOmPQRcxkNpECckOwJ+b6yMP 4Dd0iK//+auIuUk9L8RfuDmr+/IlupG3XaPS8ayKOs9CvgBfbEIoaGDYJy8ZGJe7xfQ837y Ha1GkcHqcBDMzOmkL8utpmEqRC+wUdymPGrJ/r4dmi/2UF00NaSkryyv9GcxIJbPN77i3Al ikeGnR4x7bcLgQaHHNdIg== X-UI-Out-Filterresults: notjunk:1; V01:K0:QDCKi1aZ/C0=:pM3g/TQMd17e25/rUaKEgC pROb5Pg+dQ2HC6F9S+IfGXQZ8xQtCj2gd6+wyi3+G/LX/SGTjbP4GH/uYIV5ZOyZR/M0Bl4z3 QtblWKegViSd0FdO4rxA08jc8DrXtBZ5xAdeAW9CnLHAHMFXyKMny8WUGhX65smhFCP7OubI5 VuMq67Qr2twAGL/PEel2vT/M/tOHZ2yAnuhkD382o6zv/ZhHj38ARrVKS7vEKT5238kiOOePh amXnu2rABKvbFIQ2/9N2hUG0zRsxhIred/m1I6bidgurbLE6Tz7F9bUJGyfiQMpKI0GY71StG 4aIABB9cuwchj/1lyLzf7mVttQsluMsmveb+l3tLRnieoidP2oCgFZp/LP8M+VVWCeGMKj0Ak GmhWqcYtXoqQTt9INZj6YBlmhBUMqgV8reFkKmXi6T3pEq+SU66NPE+iHqJUImk6Drq8WjKhX 51MCSPhFBT9n6x1XPFaQsZU5x1tb2QyYFclmnDh6cUOY1zA0BIk3/+0XkRfItyvUGMv2COvvT jiGB3j1M/hFyejNqa8qIZMtxJwrv44ndFoyizMLQIBcTPkb6YkqoxBmDMscOjC6BWHDVTOue/ 5LIu2Nqyp8yezbG2Cob8t31PdC0HM8v787fiVPtybANuWEH0BQPy5PbdesNhW5+Uy2XQ8QCtz 7TOZ2bqreaKKMDiMbTTHBpP2HrP+oqMCCPDNXhgv0H2a0Ic41r+QUTXsziP19+OWdRTw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170111_055158_656540_50399BA6 X-CRM114-Status: GOOD ( 13.17 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryder Lee , Arnd Bergmann , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-crypto@vger.kernel.org, Matthias Brugger , "David S. Miller" , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Building the mediatek driver on an older ARM architecture results in a harmless warning: warning: (ARCH_OMAP2PLUS_TYPICAL && CRYPTO_DEV_MEDIATEK) selects NEON which has unmet direct dependencies (VFPv3 && CPU_V7) We could add an explicit dependency on CPU_V7, but it seems nicer to open up the build to additional configurations. This replaces the ARM optimized algorithm selection with the normal one that all other drivers use, and that in turn lets us relax the dependency on ARM and drop a number of the unrelated 'select' statements. Obviously a real user would still select those other optimized drivers as a fallback, but as there is no strict dependency, we can leave that up to the user. Fixes: 785e5c616c84 ("crypto: mediatek - Add crypto driver support for some MediaTek chips") Signed-off-by: Arnd Bergmann --- drivers/crypto/Kconfig | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index 8ded3af88b16..9d37ae07b4ce 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig @@ -555,15 +555,12 @@ config CRYPTO_DEV_ROCKCHIP config CRYPTO_DEV_MEDIATEK tristate "MediaTek's EIP97 Cryptographic Engine driver" - depends on ARM && (ARCH_MEDIATEK || COMPILE_TEST) - select NEON - select KERNEL_MODE_NEON - select ARM_CRYPTO + depends on (ARM && ARCH_MEDIATEK) || COMPILE_TEST select CRYPTO_AES select CRYPTO_BLKCIPHER - select CRYPTO_SHA1_ARM_NEON - select CRYPTO_SHA256_ARM - select CRYPTO_SHA512_ARM + select CRYPTO_SHA1 + select CRYPTO_SHA256 + select CRYPTO_SHA512 select CRYPTO_HMAC help This driver allows you to utilize the hardware crypto accelerator