Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754224Ab3H0Ui5 (ORCPT ); Tue, 27 Aug 2013 16:38:57 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:37473 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754116Ab3H0Ui4 (ORCPT ); Tue, 27 Aug 2013 16:38:56 -0400 Message-ID: <521D0E40.3010302@ti.com> Date: Tue, 27 Aug 2013 16:38:24 -0400 From: Santosh Shilimkar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Stephen Warren CC: Lars Poeschel , , , , , , , , , , , , Javier Martinez Canillas , Enric Balletbo i Serra , Jean-Christophe PLAGNIOL-VILLARD , Kevin Hilman , Balaji T K , Tony Lindgren , Jon Hunter , Rajendra Nayak Subject: Re: [PATCH v3] gpio: interrupt consistency check for OF GPIO IRQs References: <1377526030-32024-1-git-send-email-larsi@wh2.tu-dresden.de> <521D0964.2080209@wwwdotorg.org> In-Reply-To: <521D0964.2080209@wwwdotorg.org> 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: 1399 Lines: 33 On Tuesday 27 August 2013 04:17 PM, Stephen Warren wrote: > On 08/26/2013 08:07 AM, Lars Poeschel wrote: >> From: Linus Walleij >> >> Currently the kernel is ambigously treating GPIOs and interrupts >> from a GPIO controller: GPIOs and interrupts are treated as >> orthogonal. This unfortunately makes it unclear how to actually >> retrieve and request a GPIO line or interrupt from a GPIO >> controller in the device tree probe path. > > I still think that this patch is the wrong approach. Instead, the logic > should be hooked into gpio_request() and request_irq(). This patch only > addresses DT, and ignores anything else, hence doesn't seem like the > right level of abstraction to plug in, since the issue is not related to DT. > On the issue, Rajendra cooked up a patch [1] to handle the issue at irqdomain level which was shot down after further discussion. It might be useful for the discussion here. Ofcourse it was also targeted to solve only DT issue. Regards, Santosh [1] "[PATCH] irqdomain: Do a gpio_request in case of a gpio irq_chip" http://www.mail-archive.com/linux-omap@vger.kernel.org/msg83451.html -- 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/