Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1204366rwb; Tue, 27 Sep 2022 09:43:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wKuYr77HjCGw3tHGSby7fS6t7XSjPj4KGTctQSNyZLqc+OXdGLnUdCNx7g8Wi54zUIPhs X-Received: by 2002:a17:90b:4f4b:b0:200:862e:8b19 with SMTP id pj11-20020a17090b4f4b00b00200862e8b19mr5305236pjb.214.1664297006020; Tue, 27 Sep 2022 09:43:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664297006; cv=none; d=google.com; s=arc-20160816; b=dd1XQzw4qjeomaNyfS7wsBSbWWTSYZrdM2WbOUYdUALqHh+p4WEu5KPNhguSamaqMO ZfHRi3wu11+3Th+erU/rFA62zFWsTQ8gPYXxZ64nYHyicIf9xI6+udoYyskSaie40tm0 rbGYLX4/Lbqlopxe9GpjifuyW0edCpA5ux4Pg4477uEhA/L/IzPV8cFPfHnpSIyq7hRz eTn2fw8iBgw5+egBwt6oJ96DYJzR7DV9IsWgypLt4S2z50kCWlX4vQzWKhcnoPbzDN35 3tmdnF7zm1r2eTEQtrYY1DNJk4nqNmN2bG2dBV4sjvHbhg4CG4ryhBDL0iSf03amMnvg nRkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=ZOmyr0741p8HxTGKR6xPjn9bzOl726XtgNZYRB1MIBA=; b=WAqUju/qLYP3HqIFjErnquyMOvgdqMXvlzT4K18h4UWaQ7Y0W33JNmbnucrsQQHIz0 ixN3ZSb1fFtkOieoum5TGbK1VfLCy9mfxcrVBJ2+lmK5+ifTnqKwRyHpTTKTkRd3GjEc uFh7NH/U37dMM1u5fJXtJKI9KByny7C6hmcnDX/fOnNcVQCEx3JyRImKmC6TPa9OmERc 7T/oBp/Z6qOBqs+F+LyYU7M0djSR+A2ptKQtMu/RD2Ejc9j1lLwY1+13y3k+GA8uf3Qy HDyG2jnpRcJnxDUaOPzPaavfzdMNBIfEgLpE3/2K8Xp1AEe+z6lLxylBEp/o28SiZF01 nRNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=pJfeAszp; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mu12-20020a17090b388c00b0020297249987si2718230pjb.124.2022.09.27.09.43.08; Tue, 27 Sep 2022 09:43:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@aurel32.net header.s=202004.hall header.b=pJfeAszp; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229453AbiI0Qin (ORCPT + 99 others); Tue, 27 Sep 2022 12:38:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230482AbiI0Qil (ORCPT ); Tue, 27 Sep 2022 12:38:41 -0400 Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76E351DADFA; Tue, 27 Sep 2022 09:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Content-Transfer-Encoding:From:Reply-To: Subject:Content-ID:Content-Description:X-Debbugs-Cc; bh=ZOmyr0741p8HxTGKR6xPjn9bzOl726XtgNZYRB1MIBA=; b=pJfeAszpHyjtPAIdxlLZP1WikJ fT2HG5jhfVnW9TwE81qdTP44C7gBOorGItOT520Qfp0RDKuo+5e7pCeaMAHXYYYog++Bz7mHgOH0s 09MtkHD/XIVK7FN11JrQe6eh0NBeytdnzB5J4jjt9bTSPfsh1Jz5J5XgKMm7G5Bj/7n5VHIn640jk ujHunMzcOeq9VY7kasjXEO/ENa580J6Dwz3aj/NoAZPPQjguyBJYM+ItQE3MLNx3UpHtojBpHSqqa DT3BLu4PjL9t4D0xCHPXWnfUlnnfbych7z52KSXKCZZvuihr2HtfOPrkjMR7Tf52CaZgRYWNzlmxe zE/FMujw==; Received: from [2a01:e34:ec5d:a741:8a4c:7c4e:dc4c:1787] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1odDaj-00BrCg-TA; Tue, 27 Sep 2022 18:37:53 +0200 Received: from aurel32 by ohm.rr44.fr with local (Exim 4.96) (envelope-from ) id 1odDaj-000LPi-0p; Tue, 27 Sep 2022 18:37:53 +0200 Date: Tue, 27 Sep 2022 18:37:53 +0200 From: Aurelien Jarno To: Robin Murphy , "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , Corentin Labbe Cc: Lin Jinhan , wevsty , Mikhail Rudenko , Heiko Stuebner , Lin Huang , Shawn Lin , linux-rockchip@lists.infradead.org Subject: Re: [PATCH] hw_random: rockchip: import driver from vendor tree Message-ID: Mail-Followup-To: Robin Murphy , "Jason A. Donenfeld" , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Herbert Xu , Corentin Labbe , Lin Jinhan , wevsty , Mikhail Rudenko , Heiko Stuebner , Lin Huang , Shawn Lin , linux-rockchip@lists.infradead.org References: <20220919210025.2376254-1-Jason@zx2c4.com> <32f8797a-4b65-69df-ee8e-7891a6b4f1af@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32f8797a-4b65-69df-ee8e-7891a6b4f1af@arm.com> User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 2022-09-20 10:35, Robin Murphy wrote: > 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). It might make sense for the cryptov1-rng driver (I haven't checked). For the cryptov2-rng driver, I looked at the RK3568 TRM (I can't find the RK3588 one), and from what I understand crypto and TRNG are two different devices, using different address spaces, clock, reset and interrupts. The vendor kernel uses two different drivers. Regards Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net