Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753958Ab3IXP1V (ORCPT ); Tue, 24 Sep 2013 11:27:21 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:22499 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751301Ab3IXP1T (ORCPT ); Tue, 24 Sep 2013 11:27:19 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.131.214.131 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/sgDe2yaj5tWKQi8Xpcre3 Date: Tue, 24 Sep 2013 08:27:03 -0700 From: Tony Lindgren To: Javier Martinez Canillas Cc: Linus Walleij , Santosh Shilimkar , Kevin Hilman , Stephen Warren , Lars Poeschel , Grant Likely , Mark Rutland , Ian Campbell , Kumar Gala , Pawel Moll , Tomasz Figa , Enric Balletbo i Serra , Jean-Christophe PLAGNIOL-VILLARD , Balaji T K , Jon Hunter , "linux-gpio@vger.kernel.org" , Linux-OMAP , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC] gpio/omap: auto-setup a GPIO when used as an IRQ Message-ID: <20130924152703.GL2684@atomide.com> References: <1379860848-29020-1-git-send-email-javier.martinez@collabora.co.uk> <524125F4.4060608@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <524125F4.4060608@collabora.co.uk> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2145 Lines: 55 * Javier Martinez Canillas [130923 22:49]: > On 09/23/2013 10:15 PM, Linus Walleij wrote: > > wrote: > > - When a second caller calls omap_gpio_request() it should > > be OK as well, but only if the flags corresponds to the > > previously enabled input mode. Else it should be > > disallowed. > > > > - The same should happen for _set_gpio_direction() if a pin > > previously set up for IRQ gets a request to be used as > > output. > > > > If this cannot be tracked in the driver, it is certainly a candidate > > for something that gpiolib should be doing. And then I'm open to > > solutions to how we can do that. > > > > Ok, this can be tracked in the driver, will add it when posting v2 soon. > > > If this needs to be applied pronto to fix the regression I'm > > happy with that too, if we add a big boilerplate stating the above > > problem and that it needs to be *fixed* at some point. In the mainline kernel, the regression is happening at least for smsc911x using boards, so that's omap3-igep.dtsi and omap3-tobi.dts currently. Also MMC card detection for omap4 is failing. Then of course there are tons of boards where we don't have the .dts files in the mainline kernel yet. So maybe let's do a minimal fix for the -rc cycle first? Then the extra checks can be queued for the next merge window if it gets too intrusive. > > But in either case I want this to be tested on OMAP1 before > > I apply it, as in a Tested-by tag. > > > > Agreed. Even though this is a fix for a long standing issue I prefer it to be > tested extensively than applying the patch in a rush just to learn that causes > regressions and have to be reverted as it happens last time. > > So as you said let's wait until we have a few Tested-by tags by people using > different OMAP platforms specially OMAP1. Yup. Regards, Tony -- 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/