From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936921AbdCXRCk (ORCPT ); Fri, 24 Mar 2017 13:02:40 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33747 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935237AbdCXRCd (ORCPT ); Fri, 24 Mar 2017 13:02:33 -0400 Date: Fri, 24 Mar 2017 20:01:48 +0300 From: Krzysztof Kozlowski To: Bartlomiej Zolnierkiewicz Cc: linux-arm-kernel@lists.infradead.org, Kukjin Kim , Javier Martinez Canillas , Matt Mackall , Herbert Xu , "David S. Miller" , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org, Olof Johansson , Arnd Bergmann , Marek Szyprowski Subject: Re: [PATCH 1/3] crypto: hw_random - Add new Exynos RNG driver Message-ID: <20170324170148.ew7ozpt5jfwdx5yn@kozik-lap> References: <20170324142446.31129-1-krzk@kernel.org> <9265537.P6AeF50kg8@amdc3058> <20170324161934.kc6g36nazr3y32kp@kozik-lap> <87677624.EBdhaJY1KM@amdc3058> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87677624.EBdhaJY1KM@amdc3058> User-Agent: Mutt/1.6.2-neo (2016-08-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 24, 2017 at 05:45:41PM +0100, Bartlomiej Zolnierkiewicz wrote: > > > > And I think the probe might be called twice, for example in case of > > > > mistake in DTB. > > > > > > Even if this is possible resource allocation code in the driver will > > > take take care of handling it just fine, > > > > Indeed, the devm_ioremap_resource() solves the case. I can drop the > > check then. > > Looking on this a bit more it seems that devm_ioremap_resource() will > not cover all mistakes (using compatible by mistake in some other DTB > node). > > Leave the check, I take my objection back. Great! Thanks for feedback. Best regards, Krzysztof