Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3035150ybv; Sat, 15 Feb 2020 09:16:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyteGSa2DdA4Rn9NqARwN9VkPFaSNl50Bjo7YLSiD2JjrcKdoqygDnkSzdSaAo1ajdK+cNn X-Received: by 2002:a9d:53cb:: with SMTP id i11mr6763833oth.158.1581787013262; Sat, 15 Feb 2020 09:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581787013; cv=none; d=google.com; s=arc-20160816; b=Zbe7TgEheaviHGGMqjW7h31Rf/LJRBqRe2EClA+iKZ2yic4dGoEXXg3bIYej+hZfli HFLR4LSMYa233i9hFxwatH5rdZOqPpOyBYZ3K2Rrcf+90xfy7t8Fv/Oo9pSjyupLbBra z+DKJPnQPRUkaMOB1ObfoI4BAloiH+oR2oCsXDg4Cxaj7Wl7W41mbBSygwECBig+jSOg Qh4zv16il4x5DyPgi455p+oFvzndtDzNB64bGfmrlgopA79OzLApR3zbf0Q54H+bXVWK bQkcLnWHQNGD0QPHqhnlitoy7TLMWbimSMJkjoUl/T//kHV9GAjUyR5Sy5snQ4N/tzrs QsrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:to:from:date; bh=po8sWXJS6IxzyBbq8gjDBPtb/1Cs4Ffh6b+Utv7PYDA=; b=N1lb7GRhzMQ/jvSBhzgUTHZKys51FaqAjAALokig7ga/cay7yEa0FVjQlyzD9cB2lV wZfsVWKyDMx5OUz7iAKZYxrl0F3ZM2AK62KxqxTCXkfLLd2y4M10+besRntJOPW8FwVl blYmUK3KVvk7SgfMD4INcpHFPfYdKN9qwmyNZwTQ8GSRcxvsUIF35L7sRgvxtEIodnKQ qj2ldEfUmdNp2F/FnEiIsPn1ni9tAiGtUGGVo0DQJfjF2Hm883Nl9cMJY/8oktBUZTuo RgYkvG4qsIV62jJ5GclwLtZBwR44Y8aIT8gyHecHLEc1O8kaggiRQAt+mK+mvcHDq4ho HB1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-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 s143si3988878oih.251.2020.02.15.09.16.31; Sat, 15 Feb 2020 09:16:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbgBORQ2 (ORCPT + 99 others); Sat, 15 Feb 2020 12:16:28 -0500 Received: from viti.kaiser.cx ([85.214.81.225]:52716 "EHLO viti.kaiser.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgBORQ2 (ORCPT ); Sat, 15 Feb 2020 12:16:28 -0500 Received: from dslb-088-068-092-168.088.068.pools.vodafone-ip.de ([88.68.92.168] helo=martin-debian-2) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1j313J-0005jM-8R; Sat, 15 Feb 2020 18:16:25 +0100 Received: from martin by martin-debian-2 with local (Exim 4.92) (envelope-from ) id 1j313I-0003zr-Mn; Sat, 15 Feb 2020 18:16:24 +0100 Date: Sat, 15 Feb 2020 18:16:24 +0100 From: Martin Kaiser To: linux-crypto@vger.kernel.org Subject: Re: [PATCH] hwrng: imx-rngc: improve dependencies Message-ID: <20200215171616.GA15321@martin-debian-1.paytec.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Thus wrote Uwe Kleine-K?nig (u.kleine-koenigpengutronix!de): > On Wed, Feb 12, 2020 at 07:51:46PM +0000, Horia Geanta wrote: > > On 2/5/2020 4:00 PM, Uwe Kleine-K?nig wrote: > > > The imx-rngc driver binds to devices that are compatible to > > > "fsl,imx25-rngb". Grepping through the device tree sources suggests this > > > only exists on i.MX25. So restrict dependencies to configs that have > > The driver could also be used by some i.MX6 SoCs (SL, SLL), > > that have a compatible rngb. > > Actually i.MX6SL has a rngb node in the DT, but unfortunately it lacks > > a compatible string. > Also the i.MX6ULL might have a compatible device? AFAICS imx35 chips have an rngc which is compatible to this driver as well. I don't have any hardware to test this, though. > > I am planning to address this short term. > > > this SoC enabled, but allow compile testing. For the latter additional > > > dependencies for clk and readl/writel are necessary. > > > > Signed-off-by: Uwe Kleine-K?nig > > > --- > > > drivers/char/hw_random/Kconfig | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig > > > index 8486c29d8324..17fe954fccde 100644 > > > --- a/drivers/char/hw_random/Kconfig > > > +++ b/drivers/char/hw_random/Kconfig > > > @@ -244,7 +244,8 @@ config HW_RANDOM_MXC_RNGA > > > config HW_RANDOM_IMX_RNGC > > > tristate "Freescale i.MX RNGC Random Number Generator" > > > - depends on ARCH_MXC > > > + depends on HAS_IOMEM && HAVE_CLK > > > + depends on SOC_IMX25 || COMPILE_TEST > > I guess SOC_IMX6SL and SOC_IMX6SLL will have to be added. > > Does this sound good? > I'd say currently the patch is right and once the device trees for the > imx6 variants were expanded to include these, the list here can be > expanded. Makes sense to me. Reviewed-by: Martin Kaiser