From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932357Ab2ASQ6s (ORCPT ); Thu, 19 Jan 2012 11:58:48 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:59080 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932078Ab2ASQ6r (ORCPT ); Thu, 19 Jan 2012 11:58:47 -0500 MIME-Version: 1.0 In-Reply-To: References: <1323431857-8828-1-git-send-email-linus.walleij@stericsson.com> Date: Thu, 19 Jan 2012 17:58:46 +0100 Message-ID: Subject: Re: [PATCH v6] pinctrl: add a pin config interface From: Linus Walleij To: Thomas Abraham Cc: Linus Walleij , linux-kernel@vger.kernel.org, Stephen Warren , Grant Likely , Barry Song <21cnbao@gmail.com>, Shawn Guo , Dong Aisheng , Rajendra Nayak , Haojian Zhuang Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 18, 2012 at 8:16 AM, Thomas Abraham wrote: > In case of runtime pinmuxing, the pin configuration would also be > required to be setup in some cases. pin_config_set() is suitable to be > called from the platform code. In case of runtime pinmuxing in driver > code, is there any way to set the pin config also at runtime in driver > code? Yes that is already possible today with the pin_config_set() and pin_config_group_set() calls already merged for 3.3. However there is no relation between the struct device and these config settings so I feel that this is a bit hack-ish, but it was atleast something we could agree upon. Thanks, Linus Walleij