From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251Ab3GQGbv (ORCPT ); Wed, 17 Jul 2013 02:31:51 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:22717 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330Ab3GQGbt (ORCPT ); Wed, 17 Jul 2013 02:31:49 -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: U2FsdGVkX191QVW18zlgWkWz6xReuDIJ Date: Tue, 16 Jul 2013 23:31:44 -0700 From: Tony Lindgren To: Grygorii Strashko Cc: linus.walleij@linaro.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Warren Subject: Re: [PATCH 1/4] pinctrl: Remove duplicate code in pinctrl_pm_select_state functions Message-ID: <20130717063144.GE7656@atomide.com> References: <20130716090310.5541.36777.stgit@localhost> <20130716090529.5541.54331.stgit@localhost> <51E5475B.1050900@ti.com> <20130716134118.GC7656@atomide.com> <51E557D1.4000707@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51E557D1.4000707@ti.com> 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 * Grygorii Strashko [130716 07:32]: > Hi Tony, > > On 07/16/2013 04:41 PM, Tony Lindgren wrote: > >* Grygorii Strashko [130716 06:22]: > >>Hi Tony, > >> > >>This patch causes boot failure when I've applied my patch > >>"[RFC] ARM: OMAP2+: omap_device: add pinctrl handling" > >>https://lkml.org/lkml/2013/6/21/309 > >> > >>on top of it: > > > >Hmm this patch alone removes duplicate code and if it causes > >issues I must have made a typo somewhere. > > No typo :) You've removed the check for !dev-pins. Oh OK, sorry that was not intentional. > And the failure place is: > int pinctrl_pm_select_active_state(struct device *dev) > { > return pinctrl_pm_select_state(dev, dev->pins->active_state); > ^^^^ here > } > > If I understand everything right, the pinctrl support in Device core > assumed to be optional - so, It's valid case, when there are no > definition for device's pinctrl in DT at all. > > And in this case dev->pins == NULL and pinctrl_pm_select_*() API > should return 0 always. Care to post your patch as it sounds like you have it fixed and tested? Regards, Tony