Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752768AbaFBXFF (ORCPT ); Mon, 2 Jun 2014 19:05:05 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:58690 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbaFBXFD (ORCPT ); Mon, 2 Jun 2014 19:05:03 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 99.127.230.128 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19ZXHVxBuZBX96ganxKaw7G Date: Mon, 2 Jun 2014 16:04:58 -0700 From: Tony Lindgren To: Linus Walleij Cc: Thierry Reding , Alexandre Courbot , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-omap@vger.kernel.org Subject: Re: [PATCH 2/2] gpio: of: Allow -gpio suffix for property names Message-ID: <20140602230457.GE11004@atomide.com> References: <1398266889-17489-1-git-send-email-thierry.reding@gmail.com> <1398266889-17489-2-git-send-email-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Linus Walleij [140425 00:53]: > On Wed, Apr 23, 2014 at 5:28 PM, Thierry Reding > wrote: > > > From: Thierry Reding > > > > Many bindings use the -gpio suffix in property names. Support this in > > addition to the -gpios suffix when requesting GPIOs using the new > > descriptor-based API. > > > > Signed-off-by: Thierry Reding > > It appears this can save quite a lot of code in drivers, work that > I trust Thierry to persue based on this to some extent so patch is > tentatively applied unless something comes up. Looks like this patch causes a regression where GPIOs on I2C will no longer return -EPROBE_DEFER but seem to return -ENOENT instead. This breaks drivers using things like devm_gpiod_get_index() on a GPIO that's on a I2C bus not probed yet. Reverting commit dd34c37aa3e (gpio: of: Allow -gpio suffix for property names) fixes things. 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/