Received: by 10.223.176.5 with SMTP id f5csp2553969wra; Mon, 5 Feb 2018 06:06:59 -0800 (PST) X-Google-Smtp-Source: AH8x226BXCNnvXkYEJthClCVHoEN0d8/zgBk3xf2XbAJTHStxVZasyBJH39dyPNaBzjCaDYvvNt2 X-Received: by 10.99.104.194 with SMTP id d185mr38351561pgc.404.1517839619402; Mon, 05 Feb 2018 06:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517839619; cv=none; d=google.com; s=arc-20160816; b=MmtB99oRgeEoxdOWeek+XsnXWGpfplMkVtr0Y1zHWJYUCOgI6WJvw/LHgwng4UsnNh wnva5gIEQ5lPmimn7Vdwkli3uJtSTjYrQIMv463wYdPmha+lL5ynTqBtGHYzdZNZfH2N xJB3eKN9PywAatCt8fBf4NH660m3Iem1jmVmu6xQSFWBLjuAi0kaZBDGrK4YUEEjHngm s/KLb67Srwenf6zVs2PPUy8Tk1Tjh1zGZOePi198kWMuKzFHiM+Q1N5BS97R6L/ac7ID 06WlGqyND+Ivg0de7uxiIMRplqIFC4m7tuUEsg8htAbf8D/FPUeO7hqOwKal9reNEGhW EPjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=nZlxAg+rYfY67XKLB7xioI5r0IMT/0P3pbSXbtWuQ2g=; b=Jr9xl8+DD5mjIpLB1XUnDW/Y/xVrBwSwXF8ZtOX3CVMbaCH0YNVJZCPwDHk0ZEG2ID /nIzxQajwwFQZcV2vrEWJSzNTeG1SN5sCH7S/9pxka5wR+kdJyunIDC0n9I/dK3n8/EX vTWdD3NoNxmP+UrZ7ORhsiZuZL6ZUFvME4h6XC9SCFU8zPZ3VIUS7Km/wk/lrd38I3tK di4iJWldo3x0DY/9h8bvqhAWT9fZS65hQOQNHONh23YzGdVIRrJZtGJ+KajUtR2yAplN Dfe/lRooD0oAMa8p46ZpFxzhu8KZ6vzoV9iVCy72L4jx4YOJRYn7FZ4DuJM6qI48tVTY hpuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si5517455pgt.217.2018.02.05.06.06.44; Mon, 05 Feb 2018 06:06:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753043AbeBEOFv (ORCPT + 99 others); Mon, 5 Feb 2018 09:05:51 -0500 Received: from mail-edgeDD24.fraunhofer.de ([192.102.167.24]:57903 "EHLO mail-edgeDD24.fraunhofer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752607AbeBEOFp (ORCPT ); Mon, 5 Feb 2018 09:05:45 -0500 X-Greylist: delayed 651 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Feb 2018 09:05:44 EST X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GiAADHYXha/xoBYJlcGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYNRZnAyg1uKJHSNOYICl0iCGAojhRgCGoIuVBgBAQEBAQEBAQI?= =?us-ascii?q?DaCiFJQEFIxFFEAIBCBgCAiYCAgIwFRACBAENijkBEL9sgieEFgEBhFqCBgEBA?= =?us-ascii?q?QEBAQEDAQEBAQEBAQEBGgWBD4NbgQ6BB4FYgWeDLoUiF4MAgmUFil+JW49lBgK?= =?us-ascii?q?BHYZ6jViCHoYmg26IBY1tigmBPB86gVBxgxiCVBwZgTIBOo4fgRcBAQE?= X-IPAS-Result: =?us-ascii?q?A2GiAADHYXha/xoBYJlcGQEBAQEBAQEBAQEBAQcBAQEBAYN?= =?us-ascii?q?RZnAyg1uKJHSNOYICl0iCGAojhRgCGoIuVBgBAQEBAQEBAQIDaCiFJQEFIxFFE?= =?us-ascii?q?AIBCBgCAiYCAgIwFRACBAENijkBEL9sgieEFgEBhFqCBgEBAQEBAQEDAQEBAQE?= =?us-ascii?q?BAQEBGgWBD4NbgQ6BB4FYgWeDLoUiF4MAgmUFil+JW49lBgKBHYZ6jViCHoYmg?= =?us-ascii?q?26IBY1tigmBPB86gVBxgxiCVBwZgTIBOo4fgRcBAQE?= X-IronPort-AV: E=Sophos;i="5.46,464,1511823600"; d="scan'208";a="1203385" Received: from mail-mtaka26.fraunhofer.de ([153.96.1.26]) by mail-edgeDD24.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 14:54:44 +0100 X-IronPort-AV: E=Sophos;i="5.46,464,1511823600"; d="scan'208";a="9560639" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP11EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaKA26.fraunhofer.de with ESMTP/TLS/AES256-SHA; 05 Feb 2018 14:54:43 +0100 Received: from FGDEMUCIMP01EXC.ads.fraunhofer.de ([10.80.232.40]) by FGDEMUCIMP11EXC.ads.fraunhofer.de ([10.80.232.42]) with mapi id 14.03.0339.000; Mon, 5 Feb 2018 14:54:43 +0100 From: "Auer, Lukas" To: "linux-kernel@vger.kernel.org" , "aymen.sghaier@nxp.com" , "horia.geanta@nxp.com" , "pure.logic@nexus-software.ie" , "linux-crypto@vger.kernel.org" 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" Subject: Re: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized Thread-Topic: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized Thread-Index: AQHTmjdPDFt5DoJeZkev9KNOEKfDKqOVzIwA Date: Mon, 5 Feb 2018 13:54:43 +0000 Message-ID: <1517838882.2601.12.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> <1517576063.2002.19.camel@aisec.fraunhofer.de> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.80.233.51] x-tm-as-product-ver: SMEX-11.0.0.4179-8.200.1013-23642.006 x-tm-as-result: No--28.683800-8.000000-31 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="utf-8" Content-ID: <77ED0A1B7A0D954C88D393EDE2337E77@xch.fraunhofer.de> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gTW9uLCAyMDE4LTAyLTA1IGF0IDA4OjQ1ICswMDAwLCBIb3JpYSBHZWFudMSDIHdyb3RlOg0K PiBPbiAyLzIvMjAxOCAyOjU0IFBNLCBBdWVyLCBMdWthcyB3cm90ZToNCj4gPiBPbiBGcmksIDIw MTgtMDItMDIgYXQgMTE6MjAgKzAwMDAsIEJyeWFuIE8nRG9ub2dodWUgd3JvdGU6DQo+ID4gPiBP biAwMS8wMi8xOCAxMjoxNiwgSG9yaWEgR2VhbnTEgyB3cm90ZToNCj4gPiA+ID4gSWYgdGhlIGxv b3AgY2Fubm90IGV4aXQgYmFzZWQgb24gdmFsdWUgb2YgInJldCIgIT0gLUVBR0FJTiwNCj4gPiA+ ID4gdGhlbi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