Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754673Ab3HWGMZ (ORCPT ); Fri, 23 Aug 2013 02:12:25 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:58024 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513Ab3HWGMX (ORCPT ); Fri, 23 Aug 2013 02:12:23 -0400 Message-ID: <5216FD0C.3090709@ti.com> Date: Fri, 23 Aug 2013 11:41:24 +0530 From: Sricharan R User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 To: Rajendra Nayak CC: Linus Walleij , Santosh Shilimkar , Tony Lindgren , Nishanth Menon , "linux-kernel@vger.kernel.org" , "devicetree-discuss@lists.ozlabs.org" , "linux-doc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux-OMAP , Russell King - ARM Linux , Felipe Balbi , Thomas Gleixner , Grant Likely Subject: Re: [PATCH 1/3] misc: Add crossbar driver References: <51E83A4F.5080904@ti.com> <51ED2385.60108@ti.com> <51ED5C66.1010407@ti.com> <51EFFBE1.4090505@ti.com> <51F0031B.1050307@ti.com> <51F00530.9090703@ti.com> <51F02069.3050207@ti.com> <51F0223E.4050008@ti.com> <51F0240F.3050507@ti.com> <20130813081003.GU7656@atomide.com> <520A02BA.4090805@ti.com> <520D398D.9040806@ti.com> <520D44C5.6080205@ti.com> <5215F6F6.9060703@ti.com> <5216E966.5020902@ti.com> In-Reply-To: <5216E966.5020902@ti.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1255 Lines: 31 Hi, On Friday 23 August 2013 10:17 AM, Rajendra Nayak wrote: > On Thursday 22 August 2013 05:03 PM, Sricharan R wrote: >> maps crossbar number<-> to interrupt number and >> calls request_irq(int_no, crossbar_handler,..) > So will this mapping happen based on some data passed from DT or > just based on whats available when the device does a request_irq()? > > If its based on whats available then I see an issue when you need > to remap something thats already mapped by default (and not used) > since you run out of all free ones. Yes, when done based on what is available then there is a problem when we run out of free ones because we do not know which one to replace. I was thinking of something like this, 1) DT would give a list of all free ones, and also if some are mapped as default and not used, mark those also as free. 2) While mapping see if it has a default mapping and use it. otherwise, pick from free list. This should be ok right ? Regards, Sricharan -- 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/