From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from service87.mimecast.com ([91.220.42.44]:60931 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845Ab3HVLoK convert rfc822-to-8bit (ORCPT ); Thu, 22 Aug 2013 07:44:10 -0400 Message-ID: <1377171844.10707.32.camel@hornet> Subject: Re: passing two interrupts two an I2C driver From: Pawel Moll Date: Thu, 22 Aug 2013 12:44:04 +0100 In-Reply-To: <20130822112619.GD26118@sirena.org.uk> References: <520E3B8F.9010800@samsung.com> <520E7417.3090606@wwwdotorg.org> <20130819084227.GC3719@e106331-lin.cambridge.arm.com> <5214AA52.2060209@samsung.com> <1377088624.10707.23.camel@hornet> <20130821175446.GI26118@sirena.org.uk> <1377163408.10707.29.camel@hornet> <20130822112619.GD26118@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: devicetree-owner@vger.kernel.org To: Mark Brown Cc: Jacek Anaszewski , Mark Rutland , "swarren@wwwdotorg.org" , "devicetree@vger.kernel.org" , "linux-iio@vger.kernel.org" , Jonathan Cameron , "maxime.ripard@free-electrons.com" , "lars@metafoo.de" , "l.czerwinski@samsung.com" , "rob.herring@calxeda.com" , "ian.campbell@citrix.com" , "s.nawrocki@samsung.com" , Wolfram Sang , "linux-i2c@vger.kernel.org" List-ID: On Thu, 2013-08-22 at 12:26 +0100, Mark Brown wrote: > On Thu, Aug 22, 2013 at 10:23:28AM +0100, Pawel Moll wrote: > > > If the platform data used to carry the (custom) irq data, the DT-powered > > driver could interrogate the DT on is own, couldn't it? Of course there > > should be some helper available, maybe something of that sort? (warning, > > untested) > > Yes, that's probably the most straightforward thing - we'd need to > either have the bindings specify which interrupt must be first for > reading i2c->irq or just have the drivers always do a name based lookup > if there's more than one interrupt. ... or make sure that of_i2c_register_devices() does *not* set i2c->irq (or rather: set it to 0) when there is more than one interrupt in the tree... Paweł