Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2177203ybt; Sun, 21 Jun 2020 11:23:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYDcIyR89B5zzyF+tcoQ2KOwVQ0/6ocnXJicNk22ITuT2K2y5aRsbB5dfs82Ag/K0Y9daQ X-Received: by 2002:a17:906:f257:: with SMTP id gy23mr13331951ejb.370.1592763794786; Sun, 21 Jun 2020 11:23:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592763794; cv=none; d=google.com; s=arc-20160816; b=RWoWH6FNowCbmh+291rRD1hHJ9fOr8xnB8y0OXRVJQZEt7aCjqvpEqBvok5x2i1u3U GwoLKeQkjbOlZ0WRu7EXWXC2g2ri/LXcm3Pn19rsrmayX9p7jWQVgkupDqj/k3OFf0Gg qRj7hqPRxFanGEjcNZzCkh98amjeiDLK6u/kg6YG0ZiMay72+Lp8Jlr9Q0cISGYBc1eD +/CemDzP29u2nP3g2WZUbDacRgwWKafldQVcThnlgFhBAUHPm+aKfNMkvaoEcgE5BfTf zlZ8Z1r5lSt4xGlQghExWDscr9RbYnxMhskQgdTxsluNQgGX4gYR3XedAxKBHeusbRxv gYtw== 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=1H9nM7GEPCgqMatu4hyBGA0p76+uyz8a238ZpMFRkDU=; b=cJ8vP4DOjVbz94jydUoC++iph1UiQAS112PeiDb6AFqL4kGpYQ7RIlE+0o0VryxpWI AmI+n+H6mJ4aI4lKf3fAXapUqYpfmRKSJGlrZIFO69rmR1uk161haYFL4gctyjheLfH9 9FMbdUfmauv7DXPT4vftmvLptlbma0sm/sJVQMULY2kS8y053UL4129cYB+njzJzo5lU bN7I2P/qI9wknnR4oNinaCz5czXcdI+2NLHIas/OHa/f//isFv4jW3Rlx2A6hxyzOsdq vIOOlfOJSWwBh2PWUhzNR+lQRPiLGNOuAI+Eh6oQt7J5O0+RI+jhiyCgfJL7yj7/n8qX 4IPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si7722597ejc.462.2020.06.21.11.22.37; Sun, 21 Jun 2020 11:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728044AbgFUSWe (ORCPT + 99 others); Sun, 21 Jun 2020 14:22:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbgFUSWe (ORCPT ); Sun, 21 Jun 2020 14:22:34 -0400 X-Greylist: delayed 2609 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 21 Jun 2020 11:22:33 PDT Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EFFC061794; Sun, 21 Jun 2020 11:22:33 -0700 (PDT) Received: from martin by viti.kaiser.cx with local (Exim 4.89) (envelope-from ) id 1jn3vf-0007dG-R4; Sun, 21 Jun 2020 19:38:51 +0200 Date: Sun, 21 Jun 2020 19:38:51 +0200 From: Martin Kaiser To: Horia =?utf-8?Q?Geant=C4=83?= Cc: Rob Herring , Shawn Guo , Sascha Hauer , Matt Mackall , Herbert Xu , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Greg Kroah-Hartman , Franck Lenormand , Iuliana Prodan , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/5] hwrng: imx-rngc: enable driver for i.MX6 Message-ID: <20200621173851.w6wkknjbzuyfxx7v@viti.kaiser.cx> References: <20200621145658.12528-1-horia.geanta@nxp.com> <20200621145658.12528-6-horia.geanta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200621145658.12528-6-horia.geanta@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Thus wrote Horia Geantă (horia.geanta@nxp.com): > i.MX6 SL, SLL, ULL, ULZ SoCs have an RNGB block. > Since imx-rngc driver supports also rngb, > let's enable it for these SoCs too. > Signed-off-by: Horia Geantă > --- > drivers/char/hw_random/Kconfig | 2 +- > drivers/char/hw_random/imx-rngc.c | 3 +++ > 2 files changed, 4 insertions(+), 1 deletion(-) > diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig > index 0ad17efc96df..53f6a7e4392f 100644 > --- a/drivers/char/hw_random/Kconfig > +++ b/drivers/char/hw_random/Kconfig > @@ -245,7 +245,7 @@ config HW_RANDOM_MXC_RNGA > config HW_RANDOM_IMX_RNGC > tristate "Freescale i.MX RNGC Random Number Generator" > depends on HAS_IOMEM && HAVE_CLK > - depends on SOC_IMX25 || COMPILE_TEST > + depends on SOC_IMX25 || SOC_IMX6SL || SOC_IMX6SLL || SOC_IMX6UL || COMPILE_TEST > default HW_RANDOM > help > This driver provides kernel-side support for the Random Number > diff --git a/drivers/char/hw_random/imx-rngc.c b/drivers/char/hw_random/imx-rngc.c > index 9c47e431ce90..84576d2fbf8c 100644 > --- a/drivers/char/hw_random/imx-rngc.c > +++ b/drivers/char/hw_random/imx-rngc.c > @@ -350,6 +350,9 @@ static SIMPLE_DEV_PM_OPS(imx_rngc_pm_ops, imx_rngc_suspend, imx_rngc_resume); > static const struct of_device_id imx_rngc_dt_ids[] = { > { .compatible = "fsl,imx25-rngb", .data = NULL, }, > + { .compatible = "fsl,imx6sl-rngb", .data = NULL, }, > + { .compatible = "fsl,imx6sll-rngb", .data = NULL, }, > + { .compatible = "fsl,imx6ull-rngb", .data = NULL, }, > { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, imx_rngc_dt_ids); > -- > 2.17.1 Reviewed-by: Martin Kaiser