From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Date: Wed, 16 May 2012 12:09:03 +0000 Subject: Re: [PATCH] gpio: Emma Mobile GPIO driver V2 Message-Id: <201205161209.03985.arnd@arndb.de> List-Id: References: <20120515154333.6659.66479.sendpatchset@w520> <20120516072927.GN7988@linux-sh.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Magnus Damm Cc: Paul Mundt , linux-kernel@vger.kernel.org, rjw@sisk.pl, linus.walleij@stericsson.com, linux-sh@vger.kernel.org, horms@verge.net.au, grant.likely@secretlab.ca, olof@lixom.net On Wednesday 16 May 2012, Magnus Damm wrote: > > irq_domain_add_legacy() exists for existing static ranges, which there is > > really no reason to be adding in new board/platform support. You don't > > have to worry about virq overlap since irq_create_mapping() already wraps > > on top of irq_alloc_desc_xxx() for lookup. > > So I intentionally made use of the legacy domain in the non-DT case. > This because I want to let the SoC code set the static IRQ ranges via > platform data. I think it's generally better to use just one code path for both cases, if you need both DT and non-DT support, which means you would always use irq_domain_add_legacy. Once you have the final patch to convert it to DT, you can remove the legacy domain and just convert it to linear. Arnd