Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1818115imm; Thu, 21 Jun 2018 02:57:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKGD4JQGyE27kcq4TbfOnA7BGHD5SI23wzLDgMcYG1vdQh2tfGehw+SyjF2p0m+u1zkVxub X-Received: by 2002:a62:2414:: with SMTP id r20-v6mr26646862pfj.108.1529575052713; Thu, 21 Jun 2018 02:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529575052; cv=none; d=google.com; s=arc-20160816; b=FK3urgBOoWz7QtlkIZqIIhEdbB7q+QFGRLZQLr+xcwDBnx50ZfYl5r2qX0U/+K2Rqy 6MRDdyaRURFk6bSsygZQ3ROkBIsn3Bm1UEpTvdZGtPWG15/wotoZRa8QLGmsCvKDQl24 KA3dxJwS0WOo4D2DZ2w1S0j+2THObELZZcjMGIplhJcT4EdEq6fbJfcSRvgG6xt9Oflx GklD96ciEU1ATWHtmVR2EIQC+XhrwxQLIIhHLYSQPiyJbc2S2LgFodD2IYJZi/uCWPjO UdbaUIu81I3huWkXy9YZSAcDqhqhGWS90uQw8uKtvoCSEVvjeOJmo5EnlF6+vTgO6c51 8RsQ== 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=A5t3YtebOCMzD3dFpt10pJGyYD5CdCR0KNKJxyS3Ulo=; b=znEu5gfFiiSVS8YdF1+N8Hd3E7s3jiRZNXkIXw3lxNtmU6EqFWyRgLIuNE25vLhqsq QVjHPhymSDKl9d31pElKU1YSMBtsCId5OvBUYzFi6yXmECgKjiq59Ml1nBXKuE6ALOsD Tih7aqUIPDmn24oEerDxRVBd9aPqgoSVP4LUXtt9TBvqdjB+9wJApwxUdfLZj2kKexx/ I7E9ZokPpD31WuLK79xOaW5ukkwHNofDhd/oDmOlSR7AEj5/9GxZkL4abaNPUhSrHB08 NONkOBOY+lDMAM0pp/LdodhPMa0/S++5guMZpY8/TUWD6ttVk1+HGSPzSFeIJumfkkS2 TyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OM+rcR9H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62-v6si4589113pfj.310.2018.06.21.02.57.18; Thu, 21 Jun 2018 02:57:32 -0700 (PDT) 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=@linaro.org header.s=google header.b=OM+rcR9H; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753944AbeFUJ4j (ORCPT + 99 others); Thu, 21 Jun 2018 05:56:39 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39808 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754065AbeFUJ4h (ORCPT ); Thu, 21 Jun 2018 05:56:37 -0400 Received: by mail-wm0-f65.google.com with SMTP id p11-v6so4791174wmc.4 for ; Thu, 21 Jun 2018 02:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=A5t3YtebOCMzD3dFpt10pJGyYD5CdCR0KNKJxyS3Ulo=; b=OM+rcR9HRGGRw/akpxU5owWg48nAt1NOS3lCpWRh3tWQfXTYLJ19DpDLCenkAuMiud L96t6IrS1+6AFUOCCzfrh6zGQDqG4tX/VfKLDGhU9G2FQ1NNTOqCjEEqqKd70IkCarGE a1tyze5/0grjkMqO0zHOdJPB1A60sfrBlp/i4= 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=A5t3YtebOCMzD3dFpt10pJGyYD5CdCR0KNKJxyS3Ulo=; b=hPy6jELVxahpT5waB3MMUctbQZpiJbXlcNq0sLjMY3Zwu3mXrOK+lvwvqUFOhiGrug RnKbsd3X/q0GvVz30gm9kTEa/w8cIV1besfSLUh2dBSZqppANNF+nuh/eeNVBoUNHvM5 CS74ouUjHAWUdQEXdZzCoxOi57nTL/SEEMnL5WSBgQgtrbLvB1CUPq9rizwU781CRrR6 xmctuaAiRIMND6y1SGA6e1SBSqLcisgUnqWm/UF9lB7KadQOJ+P302gGLZAB+mAjwq93 KhVxM2YkJlO32CSoOboiMRLXbg7sTYkakqpFm12ZeksJbQjWhiEJYpSm2BroA2zWR6R/ 8CLw== X-Gm-Message-State: APt69E2hku5gwfshcpWUNQirBX0r/9JYBqHWu2ScswMwx531wspDuSQs nGmk+QzQmcoNM1QFq0O8o2sSHg== X-Received: by 2002:a1c:4203:: with SMTP id p3-v6mr4894913wma.111.1529574996310; Thu, 21 Jun 2018 02:56:36 -0700 (PDT) Received: from [192.168.27.209] ([37.157.136.206]) by smtp.googlemail.com with ESMTPSA id l15-v6sm6042774wrs.95.2018.06.21.02.56.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Jun 2018 02:56:35 -0700 (PDT) Subject: Re: [PATCH 3/3] hwrng: msm - Add support for prng v2 To: Herbert Xu , Vinod Koul Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Matt Mackall , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, Vinod Koul References: <20180618141259.23141-1-vkoul@kernel.org> <20180618141259.23141-4-vkoul@kernel.org> <20180619142853.wgi5easw4zv6ttrb@gondor.apana.org.au> From: Stanimir Varbanov Message-ID: <966e9cd4-70a3-8d54-df0f-16df3df45fb5@linaro.org> Date: Thu, 21 Jun 2018 12:56:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180619142853.wgi5easw4zv6ttrb@gondor.apana.org.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Herbert, On 06/19/2018 05:28 PM, Herbert Xu wrote: > On Mon, Jun 18, 2018 at 07:42:59PM +0530, Vinod Koul wrote: >> Qcom 8996 and later chips support prng v2 where we need to only >> implement .read callback for hwrng. >> >> Add a new table for v2 which supports this and get version required for >> driver data. >> >> Signed-off-by: Vinod Koul > > Is this really a pseudo-RNG? If so it needs to be moved over to > the algif_rng interface. Despite the register name (PRNG_ registers prefix) the IP is using FIPS approved algorithm and we can claim that this is true hardware entropy generator. I don't think that we need to move to algif_rng. -- regards, Stan