Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756109AbeAJO1O (ORCPT + 1 other); Wed, 10 Jan 2018 09:27:14 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:60250 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838AbeAJO1K (ORCPT ); Wed, 10 Jan 2018 09:27:10 -0500 From: Fabien DESSENNE To: Corentin Labbe , Alexandre TORGUE , "arei.gonglei@huawei.com" , "corbet@lwn.net" , "davem@davemloft.net" , "herbert@gondor.apana.org.au" , "jasowang@redhat.com" , "mcoquelin.stm32@gmail.com" , "mst@redhat.com" CC: "linux-arm-kernel@lists.infradead.org" , "linux-crypto@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , Benjamin GAIGNARD Subject: Re: [PATCH 6/6] crypto: stm32-cryp: convert to the new crypto engine API Thread-Topic: [PATCH 6/6] crypto: stm32-cryp: convert to the new crypto engine API Thread-Index: AQHThM9SRdP63OsIiE+ewmRamm/SR6NtI3SA Date: Wed, 10 Jan 2018 14:25:56 +0000 Message-ID: References: <20180103201109.16077-1-clabbe.montjoie@gmail.com> <20180103201109.16077-7-clabbe.montjoie@gmail.com> In-Reply-To: <20180103201109.16077-7-clabbe.montjoie@gmail.com> Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] Content-Type: text/plain; charset="utf-8" Content-ID: <336B26E15A6D0B4A8A13F1D44097D5F2@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-10_07:,, signatures=0 Sender: linux-kernel-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