From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753851Ab1LMAWv (ORCPT ); Mon, 12 Dec 2011 19:22:51 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:54696 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752764Ab1LMAWu (ORCPT ); Mon, 12 Dec 2011 19:22:50 -0500 MIME-Version: 1.0 In-Reply-To: References: <1323431857-8828-1-git-send-email-linus.walleij@stericsson.com> Date: Tue, 13 Dec 2011 01:22:50 +0100 Message-ID: Subject: Re: [PATCH v6] pinctrl: add a pin config interface From: Linus Walleij To: Haojian Zhuang Cc: Linus Walleij , linux-kernel@vger.kernel.org, Stephen Warren , Grant Likely , Barry Song <21cnbao@gmail.com>, Shawn Guo , Thomas Abraham , 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 Mon, Dec 12, 2011 at 7:19 AM, Haojian Zhuang wrote: > You mentioned that pin_config_set() is used in below. > ret = pin_config_set(dev, "FOO_GPIO_PIN", PLATFORM_X_PULL_UP); > > struct pinctrl_dev is created while pinmux is registered. I think this > structure is always internal structure. It can't be observed by > platform driver or device driver. True. Was fixed today by a patch from Stephen Warren that simply cuts out the middleman and use the original platform device directly. Kudos to Stephen for fixing this! Linus Walleij