Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67647C38142 for ; Tue, 31 Jan 2023 10:34:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231303AbjAaKet (ORCPT ); Tue, 31 Jan 2023 05:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbjAaKer (ORCPT ); Tue, 31 Jan 2023 05:34:47 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF1031448C for ; Tue, 31 Jan 2023 02:34:45 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id l8so9983518wms.3 for ; Tue, 31 Jan 2023 02:34:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=pGDnJGJacVF1PMUap5ezjy6PuTvYC3mIm+zih6cOuVQ=; b=fUXj+8w9PNWhPejeQuG8YDIzmXrPw6BgnpaSXVKcjFMoLq7zZ+qdUWYNnvJQxBJk/Y 8jkYlJdHo59yRxNSn38ydjWTQBf5+6mQK0Y1MksanP88KDqz6LZ35Z1V3C8z7cqWYOq0 nyViAp4vJFBB5AawR2mxkaq6VoCNFLSunydwkt89OM0wmw+nVjjS2CcHfFGbAIV6DJKj 66AYmiLwy0hbS5wvYT2aKFoNwApOSlWupeyoKa4dXFmfdwcnw1iYGqy8J1g+X+WftVPe d+yjmfKQkXCGHo17mMZWRaUiswqTqR2sURPPqtYCPMFxiyIFgEVa1OZWtWkpXlIjO3Zf 66Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pGDnJGJacVF1PMUap5ezjy6PuTvYC3mIm+zih6cOuVQ=; b=CMXsd7SZKDVKPRUHb4kA0mS4m/b3n2Yq9lgI1Tt0VGU4z86R4DIs3jz40wG7rNeMjq aLCJrtjnLKu1kWmHV+RwQNgPiB+3tIgIgLX6hmwZ/Gmw+wfatknIH9sK7CctVWEtpe1v x/SO7cZ59hHNXK6p91tLGydNoZ6jtqepVSGqvZlqfBaGZ46UOCkOjHVQabu3a4udkjWZ yTbw2bP4q9LPSNPlPFHtJ8Rffi9USOlAZOP7/7eUNvV6PczS/xYFU1LOarG1Wh+HM08e WjQJAUT2JV127ttfazi4mNIRyPC7IISmOIcV02JIixjgaPS+eL+KJfxb4vsm7YMasJKQ Sntg== X-Gm-Message-State: AO0yUKXklFeWmeGU+4K2xAL2ICsVyxSOb8H7Rm8GwfTwdKRw4yk97doA lVtK5OtvMxx6bjEoSaeBrLs4ZQ== X-Google-Smtp-Source: AK7set9miOpPKqLx30aMxVqgYoOxwtZBLwr3guJySEdGJ1fZiIka9A50E9jnmWTtUAeA/hVHH0RuVQ== X-Received: by 2002:a1c:f014:0:b0:3dc:4318:d00d with SMTP id a20-20020a1cf014000000b003dc4318d00dmr14272307wmb.11.1675161284465; Tue, 31 Jan 2023 02:34:44 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:4a02:2aff:fe07:1efc]) by smtp.googlemail.com with ESMTPSA id m29-20020a05600c3b1d00b003dc51c48f0bsm8923701wms.19.2023.01.31.02.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 02:34:44 -0800 (PST) Date: Tue, 31 Jan 2023 11:34:37 +0100 From: Corentin LABBE To: troy.lin@rock-chips.com, shawn.lin@rock-chips.com, hl@rock-chips.com, ty@wevs.org, mike.rudenko@gmail.com Cc: "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , Heiko Stuebner , linux-rockchip@lists.infradead.org, robin.murphy@arm.com Subject: Re: [PATCH] hw_random: rockchip: import driver from vendor tree Message-ID: References: <20220919210025.2376254-1-Jason@zx2c4.com> <32f8797a-4b65-69df-ee8e-7891a6b4f1af@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <32f8797a-4b65-69df-ee8e-7891a6b4f1af@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Le Tue, Sep 20, 2022 at 10:35:44AM +0100, Robin Murphy a ?crit : > On 2022-09-19 22:00, Jason A. Donenfeld wrote: > > The Rockchip driver has long existed out of tree, but not upstream. > > There is support for it upstream in u-boot, but not in Linux proper. > > This commit imports the GPLv2 driver written by Lin Jinhan, together > > with the DTS and config blobs from Wevsty. > > Note that Corentin has a series enabling the full crypto driver for > RK3328 and RK3399[1], so it would seem more sensible to add TRNG support > to that. Having confliciting compatibles for the same hardware that > force the user to change their DT to choose one functionality or the > other isn't good (plus there's also no binding for this one). > > Robin. > Hello I am very interested on how this serie was tested and which tools was used to ensure output was random. And how did you get that CRYPTO_V1_TRNG_SAMPLE_PERIOD(100); was the best choice. Thanks Regards