From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH] ASoC: core: Configure pin muxing via pinctrl when registering a DAI Date: Mon, 24 Sep 2012 09:38:43 -0600 Message-ID: <50607E83.6010805@wwwdotorg.org> References: <1348214066-28384-1-git-send-email-peter.ujfalusi@ti.com> <20120921111352.GA21524@opensource.wolfsonmicro.com> <505C68AA.7080907@ti.com> <505C9496.1050307@wwwdotorg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from avon.wwwdotorg.org (avon.wwwdotorg.org [70.85.31.133]) by alsa0.perex.cz (Postfix) with ESMTP id B52722615E7 for ; Mon, 24 Sep 2012 17:38:50 +0200 (CEST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Linus Walleij Cc: Peter Ujfalusi , alsa-devel@alsa-project.org, Mark Brown , Magnus Damm , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 09/24/2012 02:34 AM, Linus Walleij wrote: > On Fri, Sep 21, 2012 at 6:23 PM, Stephen Warren wrote: >> On 09/21/2012 07:16 AM, Peter Ujfalusi wrote: >>> >>> pinctrl_get_select() returns with a pointer to struct pinctrl. If the platform >>> does not have CONFIG_PINCTRL enabled it will return with NULL. >>> If no pinctrl has been specified for the device it will return with error >>> (-ENODEV). >>> Neither of these cases should be considered as error. We do print out with >>> dev_info() to notify the developer, but having pinctrl mux should not be >>> mandatory. >> >> Indeed - what about a platform like Tegra which has pinctrl enabled, yet >> doesn't specify any pinctrl configuration for any device other than the >> pin controller itself? > > It would be fixed by calling pinctrl_provide_dummies() right? > > Not that it's elegant or anything ... Right - calling pinctrl_provide_dummies() ends up telling the pinctrl core never to return an error even when it "should". I don't think it's appropriate to use that API at all except to help out transitioning a particular SoC to use pinctrl.