From patchwork Fri Oct 29 13:54:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Toromanoff X-Patchwork-Id: 12592763 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01A89C433EF for ; Fri, 29 Oct 2021 14:02:17 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C08B760ED5 for ; Fri, 29 Oct 2021 14:02:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C08B760ED5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=vzhhT2uLn65B2dLBLoxmj6yVL5kSELuCG2M5uhkY2y0=; b=EiYMErm1N1qJsk jhSh65yqFRj5u1UBTsLRnHr6/+P34bkydqXmOjO1Gh5uf8sazFTthwTaKkj1rvLRBQmW4SVpWFsTe /AFoWU9fxmQ+L8KIXd6Yt6h91cl8HlHkmkFUYDtIk/9ct6poWKsg1Q0+h5mhF2KGV/Lqf4EAxCnNp 7jg/u41wuz3lt0vj6IrPFMJcayYV4hz5w4gwhWraEjXPmxK59oGJoIm1RdF8EkVn3U6PiEZ1ot5Fx HTkoZdG+e1O/RPUrcDeU4BQII1k9+OyjD8B1zS1o5gICiNokwKfid6xLY07ljeGyw59RExSpdPv79 iSE/j2U8y/GTIf57mUhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgSR2-00B7Ms-5E; Fri, 29 Oct 2021 14:00:44 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgSQy-00B7Le-59 for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 14:00:41 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19TDDE7K001315; Fri, 29 Oct 2021 15:55:49 +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; s=selector1; bh=mCiDR+gsoKv33aVNbx/ppRXPMERKyfh5jwIF1keIFKM=; b=LWn+sHwm8cXD81nuGYL0rN6/Vcf/98bIOtXh+UnbEViS5Gc1B+jjiVknkG69EaH1ytwz PvTTz/YQwGrHG85WdusecAijrsIiPv3OvGTBailxLaFUrwfxwvJR4Nlk89lwxDFLXuaP CILeFVcYoEySNLu1T/EXnQ/V9UcBcrIZMJgvbIAH0tujk9cbApRIE11Bz0drEtAf1R6W YvSLrX1heC9NGt3ESObPhdPfwvN7Yam+qyIF8FmOqjLQq5NoXqA9kmd4AwGJj4VsXPiw ipMZTHluecxDHCjsT5kysBg3lkd70kZKLBlWicBcgjgKIrMc4+XAvwebHUu6VFzHiUzv Ng== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3c07xgkp6f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Oct 2021 15:55:49 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CEECD10002A; Fri, 29 Oct 2021 15:55:45 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 78CE024C73D; Fri, 29 Oct 2021 15:55:45 +0200 (CEST) Received: from localhost (10.75.127.48) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Fri, 29 Oct 2021 15:55:45 +0200 From: Nicolas Toromanoff To: Herbert Xu , "David S . Miller" , Maxime Coquelin , Alexandre Torgue CC: Marek Vasut , Nicolas Toromanoff , , , , Subject: [PATCH 0/8] STM32 CRYP driver: many fixes Date: Fri, 29 Oct 2021 15:54:46 +0200 Message-ID: <20211029135454.4383-1-nicolas.toromanoff@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-29_03,2021-10-29_01,2020-04-07_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_070040_531385_9655706D X-CRM114-Status: GOOD ( 12.39 ) 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 Hello, This set of patches update the STM32 CRYP driver. First two update about EPROBE_DEFER management. Then many fixes to success the cryptomanager EXTRA_TESTS. And finally we reorder the initialization to set the key as last step. This patch series applies to cryptodev/master. Etienne Carriere (2): crypto: stm32/cryp - defer probe for reset controller crypto: stm32/cryp - don't print error on probe deferral Nicolas Toromanoff (6): crypto: stm32/cryp - fix CTR counter carry crypto: stm32/cryp - fix race condition crypto: stm32/cryp - check early input data crypto: stm32/cryp - fix double pm exit. crypto: stm32/cryp - fix bugs and crash in tests crypto: stm32/cryp - reorder hw initialization drivers/crypto/stm32/stm32-cryp.c | 977 ++++++++++++------------------ 1 file changed, 401 insertions(+), 576 deletions(-) base-commit: 3ae88f676aa63366ffa9eebb8ae787c7e19f0c57