From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Subject: Re: [PATCH v4 1/2] gpio/omap: don't create an IRQ mapping for every GPIO on DT Date: Sun, 28 Jul 2013 19:13:17 +0200 Message-ID: <51F5512D.1070105@ahsoftware.de> References: <1372433223-9053-1-git-send-email-javier.martinez@collabora.co.uk> <51F4F973.8000303@ahsoftware.de> <51F515A9.9010005@ahsoftware.de> <448912EABC71F84BBCADFD3C67C4BE5283E9D4@DBDE04.ent.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from h1446028.stratoserver.net ([85.214.92.142]:43578 "EHLO mail.ahsoftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753855Ab3G1ROA (ORCPT ); Sun, 28 Jul 2013 13:14:00 -0400 Received: from eiche.ahsoftware (p57B21DD0.dip0.t-ipconnect.de [87.178.29.208]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id 95126423C293 for ; Sun, 28 Jul 2013 19:13:57 +0200 (CEST) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Linus Walleij Cc: "Shilimkar, Santosh" , ext Tony Lindgren , Grant Likely , Kevin Hilman , Javier Martinez Canillas , Jon Hunter , Jean-Christophe PLAGNIOL-VILLARD , Enric Balletbo Serra , Linux-OMAP , Florian Vaussard , Aaro Koskinen , "Krishnamoorthy, Balaji T" Am 28.07.2013 18:29, schrieb Linus Walleij: > On Sun, Jul 28, 2013 at 4:37 PM, Shilimkar, Santosh > wrote: > >> I think the default OMAP DT files will continue to work with >> these patches applied and mostly doesn't break anything >> in default configuration. > > What does "mostly" mean? Hm hm. OK I feel a little > bit better about this now... > >> Ofcourse with the DT modification as done >> by Alexander will expose the issue. > > So this is all caused by non-upstream code or > non-upstream DTS files? > >> I really wanted to have the auto request GPIO supported >> when used as IRQ line but surely not at expense of >> breaking the client drivers. > > If things are working for the default DTS files in the > kernel then I am OK with it. Sorry, but that isn't and can't be a solution. Most upstream DTS files are just for a small number of developer boards and DT got introduced to support a lot of boards while only providing a few DTs. Having a quick look git grep gpio_to_irq, I've quickly spotted e.g. this in drivers/input/keyboard/gpio_keys.c: irq = gpio_to_irq(button->gpio); if (irq < 0) { (again <0 not <=0) and I assume that gpio-keys now fails too. But I haven't tested it (yet). Maybe my dts entry is wrong or incomplete, but I don't see a way how to define the irq-domain besides the one which is already defined by the definition of the gpio. And I don't see why that should be necessary, in the dts the domain is already defined, it just (now) isn't used anymore. Besides that, I feel free to ignore me. I don't know what the new patches do fix and I don't really have a need for a solution. Regards, Alexander Holler