Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756935Ab3H3Tzd (ORCPT ); Fri, 30 Aug 2013 15:55:33 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:44395 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755968Ab3H3Tzb (ORCPT ); Fri, 30 Aug 2013 15:55:31 -0400 Message-ID: <5220F8AE.2080300@wwwdotorg.org> Date: Fri, 30 Aug 2013 13:55:26 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: Javier Martinez Canillas CC: Linus Walleij , Lars Poeschel , Lars Poeschel , Grant Likely , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Mark Rutland , Ian Campbell , Kumar Gala , Pawel Moll , Tomasz Figa , Enric Balletbo i Serra , Jean-Christophe PLAGNIOL-VILLARD , Santosh Shilimkar , Kevin Hilman , Balaji T K , Tony Lindgren , Jon Hunter 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> <521FE637.3010805@collabora.co.uk> In-Reply-To: <521FE637.3010805@collabora.co.uk> X-Enigmail-Version: 1.4.6 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: 895 Lines: 18 On 08/29/2013 06:24 PM, Javier Martinez Canillas wrote: ... > We have been trying to solve this issue for a few months by now and Linus' > approach seems to be the most sensible solution to me. > > Drivers that request an IRQ and assume that platform code will request and setup > the GPIO have been broken since the boards using these drivers were migrated to > DT (e.g: smsc911x on OMAP2+ boards). That's only true if the driver for the GPIO controller is buggy. Whatever request_irq() maps down to in the GPIO/IRQ controller driver simply needs to set up the pin as an interrupt input, then it doesn't matter which order the driver does things. -- 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/