From patchwork Thu Apr 18 14:42:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime MERE X-Patchwork-Id: 13634943 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CC35C4345F for ; Thu, 18 Apr 2024 14:44:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QnUfg64mLOeDfbR1x66u91q8Fq6+7NnPnvSLFogXPJA=; b=y0hgIXjStT+Ez9 CKQGS+sCFN/a0yQIMPqFGmymhhNS7tCWADw1JzISxp1MLg31uyYJepefh82DTw7ZIs928x/l9C5Tb LIs0DfrYywgyQT+eOK70CIqjVYUlvgg9EMn/wDlOWrSZCxRzl1jzO3e6jVouThmWd7KsN1oROpyw3 PNtZvX0o88c4gvRJdsTXWcK78OuCgvN/YgVa4xUZscUir9Wv5caD5dBl+kA0VDD/NU8xe3DrzEZjf tgWEZ8MIhflNSTaXyl5r8u2b3a/GeZ8U2riHx/jaU1F9sr4uxroO1LveRirYC4P4GOFzLmOoY2Cfw BYU+FprHUcUnTPqzP8pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxSzx-00000002feq-45vI; Thu, 18 Apr 2024 14:44:25 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rxSzu-00000002fc5-1P1Q for linux-arm-kernel@lists.infradead.org; Thu, 18 Apr 2024 14:44:23 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43IE6PO6030179; Thu, 18 Apr 2024 16:44:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=selector1; bh=vhAIipHO+m7PSgyeEztd ns8sMS1ah/Ng1G9Fc0eikUA=; b=ZtruPcUqXI8KB/V93yloOv7dlzaouJZyraYT sxfBYYIfb95wVhckrTuq/Y1ttHalUl9YciCN9LPyzHiz8jjQ5gUwf5AdqCCU1xLP 5Zk8GstFdCE39aGAdPoe+P92c+Cpr7qeo6gzmodHdxCIzrKB+l7YuBkokUpsubAR 0C+xeB87nTNaxgNGo7GWbPQOlKrK+UVDZXyqJbvWP8iYQZzFwnf0UCsm5uYHBxil vSQP34UfcreRf/IMsIwgPUv5DKZtQTyAdhZNCbuXsgbBhOTHG5/ebPzwkAxpJadM akj/TBv12HAoy0sRWyIIpQk0nZduW8CihbwicLUoqlBsppjtKw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3xgecym5dv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 16:44:02 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 248FE40044; Thu, 18 Apr 2024 16:43:41 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 37A4621ED2A; Thu, 18 Apr 2024 16:43:01 +0200 (CEST) Received: from localhost (10.48.86.103) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 18 Apr 2024 16:43:00 +0200 From: Maxime MERE To: Herbert Xu , "David S . Miller" , Maxime Coquelin , Alexandre Torgue CC: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , , , , Subject: [PATCH 0/3] crypto: stm32/cryp - Improve stm32-cryp driver Date: Thu, 18 Apr 2024 16:42:53 +0200 Message-ID: <20240418144256.3736800-1-maxime.mere@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.103] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-18_12,2024-04-17_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240418_074422_676223_B4F2C9A0 X-CRM114-Status: UNSURE ( 7.78 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maxime Méré This series of patches mainly aims to improve the usage of DMA with the CRYP peripheral of the STM32 MPU series. The other two patches are needed to enhance the driver's visibility for ST platforms. Maxime Méré (3): crypto: stm32/cryp - use dma when possible. crypto: stm32/cryp - increase priority crypto: stm32/cryp - add CRYPTO_ALG_KERN_DRIVER_ONLY flag drivers/crypto/stm32/stm32-cryp.c | 722 ++++++++++++++++++++++++++++-- 1 file changed, 678 insertions(+), 44 deletions(-)