Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755914Ab3GYNVl (ORCPT ); Thu, 25 Jul 2013 09:21:41 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:58181 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755550Ab3GYNVg (ORCPT ); Thu, 25 Jul 2013 09:21:36 -0400 MIME-Version: 1.0 In-Reply-To: <20130725131556.GD9858@sirena.org.uk> References: <1624911.6TtmtVmU1T@avalon> <1408178.cxAUTUGJc5@avalon> <20130725131556.GD9858@sirena.org.uk> Date: Thu, 25 Jul 2013 15:21:35 +0200 Message-ID: Subject: Re: How to create IRQ mappings in a GPIO driver that doesn't control its IRQ domain ? From: Linus Walleij To: Mark Brown Cc: Laurent Pinchart , Benjamin Herrenschmidt , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Grant Likely , Guennadi Liakhovetski , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 21 On Thu, Jul 25, 2013 at 3:15 PM, Mark Brown wrote: > On Thu, Jul 25, 2013 at 11:45:33AM +0200, Laurent Pinchart wrote: > >> The number of interrupts can be pretty high (up to 58 in the worst case so >> far), so an alternative would be to specify the interrupt-parent only, and >> call irq_create_of_mapping() directly. What solution would you prefer ? > > Are the interrupts in a contiguous block in the controller so you can > just pass around the controller and a base number? That works with platform data and in-kernel structures, but AFAICT device tree has no such "bulk" concept but expects you to list each and every line individually in cases like this. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/