From: "Auer, Lukas" Subject: Re: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized Date: Fri, 2 Feb 2018 12:54:24 +0000 Message-ID: <1517576063.2002.19.camel@aisec.fraunhofer.de> References: <1517364040-27607-1-git-send-email-pure.logic@nexus-software.ie> <1517364040-27607-3-git-send-email-pure.logic@nexus-software.ie> <78ad6a62-190c-e4fe-dd23-e1d058f9bbb2@nexus-software.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "peng.fan@nxp.com" , "davem@davemloft.net" , "ryan.harkin@linaro.org" , "fabio.estevam@nxp.com" , "rui.silva@linaro.org" , "herbert@gondor.apana.org.au" To: "linux-kernel@vger.kernel.org" , "aymen.sghaier@nxp.com" , "horia.geanta@nxp.com" , "pure.logic@nexus-software.ie" , "linux-crypto@vger.kernel.org" Return-path: Received: from mail-edgeka24.fraunhofer.de ([153.96.1.24]:43233 "EHLO mail-edgeKA24.fraunhofer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbeBBMya (ORCPT ); Fri, 2 Feb 2018 07:54:30 -0500 In-Reply-To: <78ad6a62-190c-e4fe-dd23-e1d058f9bbb2@nexus-software.ie> Content-Language: en-US Content-ID: <319A159D028DB7489AE7EEE5F58C047B@xch.fraunhofer.de> Sender: linux-crypto-owner@vger.kernel.org List-ID: T24gRnJpLCAyMDE4LTAyLTAyIGF0IDExOjIwICswMDAwLCBCcnlhbiBPJ0Rvbm9naHVlIHdyb3Rl Og0KPiBPbiAwMS8wMi8xOCAxMjoxNiwgSG9yaWEgR2VhbnTEgyB3cm90ZToNCj4gPiBJZiB0aGUg bG9vcCBjYW5ub3QgZXhpdCBiYXNlZCBvbiB2YWx1ZSBvZiAicmV0IiAhPSAtRUFHQUlOLCB0aGVu IGl0DQo+ID4gbWVhbnMNCj4gPiBjYWFtX3Byb2JlKCkgd2lsbCBldmVudHVhbGx5IGZhaWwgZHVl IHRvIHJldCA9PS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