Received: by 10.223.176.5 with SMTP id f5csp617967wra; Fri, 2 Feb 2018 03:25:00 -0800 (PST) X-Google-Smtp-Source: AH8x227vXo/fqhBMPiWmkExyUp58gRemDzTMA5Rkvk/31TIZs4JyXoQAE7T8S8phosVYvzevHQ3s X-Received: by 10.99.63.11 with SMTP id m11mr2566271pga.422.1517570700266; Fri, 02 Feb 2018 03:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517570700; cv=none; d=google.com; s=arc-20160816; b=haNnrd1PqzZl2wW0Xh0gl8H2RYzBqowu5S0Oqz0dpYIoZaLNOQwjaVlaThVYZszGPQ VuBvcjt6M8n8I9Mh892rMblnRGjVg+KKODaFubsnzHoQp/FnGd4urIjfaTEmYcdmNCpK fCLIsTGdddBhelWzsJVksracbEA5wY9hj+uBy2sjkjG0GLI21/woScu0kubhePutFinh t/4K574OMeKbb2YOFb00VWXAdY+E5CZWt3kmuBZE9wloz9PPvSYzNYJ1WNMkTzD7D5eN QRW+64QA2dD4FfvEsmH/LmNZ2wh1NWtT3aY4yBfjQRChmqb5r9OFIGpdrNri8zz3r6QD YMnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=Ud7fnpoV8LBSTH2+ClW4y1kVi0uHbjodo5Ez/g2padA=; b=a0FgmOOhP7gR0Q4ZI4BSJBPuXiklQL0ViNkiejjREhQfqGRNlVqa9vFld16w7cuCBS OIxvc+pyZqAeebvtsiwPf5yBhiLYRaZCdxia3lDF0xJumRQkjQW/m+hjGIbh0DN68rji XBDvZEuCbQ6XthVAcqma83H5Tm8hJuWQ0aMGmjEBgGnqFnsed1AskXv51Q5r5Tn5+IPv N8XGUDPbXDKa7dtGnR/ybYOZ25/HFx2TWdjhfkE48BJVrocM1+jrg8iaRLNAr7+dTs9/ +NYOHyztbYH4jSxVdwtrSwQA86X4491O9+Z38GumvOH+n3VtQ7C5wQCxk8tDYoXzfuRg G5gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=jdK2jD05; 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 r4si1262229pgs.573.2018.02.02.03.24.32; Fri, 02 Feb 2018 03:25:00 -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; dkim=pass header.i=@nexus-software-ie.20150623.gappssmtp.com header.s=20150623 header.b=jdK2jD05; 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 S1751561AbeBBLVF (ORCPT + 99 others); Fri, 2 Feb 2018 06:21:05 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:37110 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbeBBLU7 (ORCPT ); Fri, 2 Feb 2018 06:20:59 -0500 Received: by mail-wm0-f50.google.com with SMTP id v71so11631744wmv.2 for ; Fri, 02 Feb 2018 03:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Ud7fnpoV8LBSTH2+ClW4y1kVi0uHbjodo5Ez/g2padA=; b=jdK2jD05H7KXHsG3/q0xQyi3LERDY/rl8Q6i4HffXjWL8pyBhWVTwAhRC07zp7GSP4 trRrbfQDQ9ZDPlRQf/+27xqIiAVitvVJhEA03E/UDhSkHTlYi5b+hP77JpPxdcU/Jinf DBR2gFtzMeHPduWVpw4Mi9PMmpuSTtrtLlPcn5xo5Hg2EndLNWYPxAlkZvdKWWS2T3QM XvLUWrirNp4Ktmad4V/YQVFbdi039CIijkPxhWh5+uESzBSQyokIMbsj3OJNMH8YxD6R HZJZ9TSx7XM9/41Djfp09+eSpWOneN+hWUx/iYA9hIoq11j53GBP5S5LNr8TztZcrvUd u7iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Ud7fnpoV8LBSTH2+ClW4y1kVi0uHbjodo5Ez/g2padA=; b=Dd9nCraauJnyx/4VdH6zABdqe7Q4dBhzprjYd1m0DlbRgV80YF6nW85FDWUw/8ua2r M4zejltgtsuX0yaczlLz5fGNPoBfaemEuHZtNS26bK5/IljxJXlDsBzgZPpN4H77ucdk qSx8V8g/hD6nJfw1xIaTTcmeEju3mBLI+wB0aR+k3QUYI7dAwoy0md8i+ma5zH6YRQAZ 1Z7TvG3L1TylisUN/f+Dg090Wn0n1PjJnWa9c8ZMq81cjgUEhMh3D81df/aULbsfLicm hEyA7PvR1s0oD2cM0mxoh/2R+JgdIf813CQdXhWtxW9+E7FkodZqvrudka0xI4t2G3IR 9Xxw== X-Gm-Message-State: AKwxytepVwq66lIqfoHicOpf42TK35Z/yJf2JUoauGxoWRJBO8h7ZD8z 0eRp8kfzH8BIPEQfJOdyAM6xzg== X-Received: by 10.80.164.13 with SMTP id u13mr67166559edb.282.1517570457906; Fri, 02 Feb 2018 03:20:57 -0800 (PST) Received: from [192.168.192.35] ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id b27sm1501965edc.28.2018.02.02.03.20.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 03:20:57 -0800 (PST) Subject: Re: [PATCH v3 2/5] crypto: caam: Fix endless loop when RNG is already initialized To: =?UTF-8?Q?Horia_Geant=c4=83?= , Aymen Sghaier , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: Fabio Estevam , Peng Fan , "davem@davemloft.net" , "lukas.auer@aisec.fraunhofer.de" , "rui.silva@linaro.org" , "ryan.harkin@linaro.org" , Herbert Xu References: <1517364040-27607-1-git-send-email-pure.logic@nexus-software.ie> <1517364040-27607-3-git-send-email-pure.logic@nexus-software.ie> From: Bryan O'Donoghue Message-ID: <78ad6a62-190c-e4fe-dd23-e1d058f9bbb2@nexus-software.ie> Date: Fri, 2 Feb 2018 11:20:56 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/18 12:16, Horia Geant? wrote: > If the loop cannot exit based on value of "ret" != -EAGAIN, then it means > caam_probe() will eventually fail due to ret == -EAGAIN: > if (ret) { > dev_err(dev, "failed to instantiate RNG"); > goto caam_remove; > } For me it's an endless loop applying the first two https://patchwork.ozlabs.org/patch/866460/ https://patchwork.ozlabs.org/patch/866462/ but not this one https://patchwork.ozlabs.org/patch/865890/ > Please provide more details, so that the root cause is found and fixed. np --- bod