Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6464186ybv; Wed, 12 Feb 2020 12:45:42 -0800 (PST) X-Google-Smtp-Source: APXvYqySeGI66u5YRczmXhN/aWarhK2dQQ0uWsBOGDaLqCfe+llm7Qh4IVjzzlR3OJ/y7TqQoE0V X-Received: by 2002:a9d:5a09:: with SMTP id v9mr10292774oth.214.1581540342393; Wed, 12 Feb 2020 12:45:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581540342; cv=none; d=google.com; s=arc-20160816; b=Kb7HuLBFy7JVGWbZfI/DxRgyc7K3ycRKV1kVDr9xgunLQzVIhj5UIR71GeCiCIQMty mWjuQ2J5lIqfnS1sPv67h8/Pqz/feJ+EIIIWhsEOhhenVSCvGU7Q7L2x+8+6gakVW+QB 5a/TvQyX0rhf+CM/2XceYtZaUC5QM+Xv+EklbjAD9ZMTQqUOFetZbavpWcBgrKhxfs6D YMwIV+MqYgTuoGwcCKqcbiTASj5Uco6dgiFF/2oNfapkfOjly5vuA3T+/lFYdeN8JIRI kaIeD0fcXhoFdTnyjfQrYIKBZ+QZ1Wkvdxu9+ttkdXYwOPLB/9l+fbqjVCaTzdbbxmIJ fHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jddUX/LaS4gky0seK/oNGjHc1h2coOTIlwQIyJe1eJw=; b=cWUqAZAwDAwnwodpsUbk8EWcw7lWNJPcQ4zAp86UF/wwxrHJAlxRBnYkzXNVRLwN50 Z7A2ulIGWEMgjUpu781MuoDNGI+ppaOn7/PknukX8uqCZQaUYepVgLIMHyyP47aIugv9 9/7Ow5YSsXbEdBMT8P9BYsYMiSkWjGEl876q1iedaaXuWAdiO1hgsqeMECCc1ZY37DXv govd7nGURG+JMOVj79GIS44PQ86/vg8qYNxIFkb3w60qRPEO+Pp/917kwxT9p10W9lXN 5ZN96GOOn8H1XMxU+Z4nV1byizheOvBM5IxFf5ij9wuL72IViUQmScyVC/MWQucNt4fP +2uw== 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 x23si669980otq.41.2020.02.12.12.45.21; Wed, 12 Feb 2020 12:45:42 -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 S1728185AbgBLUpS (ORCPT + 99 others); Wed, 12 Feb 2020 15:45:18 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:43665 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgBLUpS (ORCPT ); Wed, 12 Feb 2020 15:45:18 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1ysh-00039j-DC; Wed, 12 Feb 2020 21:45:11 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1j1ysd-0004v8-6T; Wed, 12 Feb 2020 21:45:07 +0100 Date: Wed, 12 Feb 2020 21:45:07 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Horia Geanta Cc: Matt Mackall , Herbert Xu , Arnd Bergmann , Greg Kroah-Hartman , "kernel@pengutronix.de" , dl-linux-imx , "linux-crypto@vger.kernel.org" Subject: Re: [PATCH] hwrng: imx-rngc: improve dependencies Message-ID: <20200212204507.u4slynuvztxjxbef@pengutronix.de> References: <20200205140002.26273-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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? > 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. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |