From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jassi Brar Subject: Re: [PATCH 1/2] dt-bindings: dmaengine: add DT binding for UniPhier MIO DMAC Date: Thu, 23 Aug 2018 19:42:32 +0530 Message-ID: References: <1534843809-4137-1-git-send-email-yamada.masahiro@socionext.com> <1534843809-4137-2-git-send-email-yamada.masahiro@socionext.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring Cc: Masahiro Yamada , Vinod , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , Masami Hiramatsu , Devicetree List , "linux-kernel@vger.kernel.org" List-Id: devicetree@vger.kernel.org On 23 August 2018 at 18:51, Rob Herring wrote: > On Thu, Aug 23, 2018 at 12:38 AM Jassi Brar wrote: >> On 23 August 2018 at 10:48, Masahiro Yamada >> > >> > If desired, I will export of_irq_count() >> > and use it from my driver. >> > >> If you don't want to leave too much footprint, you could do >> >> count = 0; >> while (of_irq_parse_one(dev, count, &irq) == 0) count++ >> >> of_irq_parse_one() is already exported. > > Yes, but we really don't more users and drivers shouldn't be using it. > Grepping DT functions and when the only users are pretty much powerpc, > that's a good indication not to use the function. > > And you don't want to use of_irq_count either. platform_irq_count is > what should be used here. It's already exported. > Thanks, platform_irq_count() is definitely better. Yamada-san, for example, gpio-tegra.c infers the number of banks from platform_irq_count() rather than the 'gpio-banks' property.