From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751314Ab1HIBpS (ORCPT ); Mon, 8 Aug 2011 21:45:18 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:35294 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751146Ab1HIBpR (ORCPT ); Mon, 8 Aug 2011 21:45:17 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6432"; a="108946865" Message-ID: <4E40912C.5040801@codeaurora.org> Date: Mon, 08 Aug 2011 18:45:16 -0700 From: Rohit Vaswani User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Kyungmin Park CC: Grant Likely , Paul Mundt , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, workgroup.linux@csr.com, Barry Song Subject: Re: [PATCH] GPIOLIB: add generic gpio_set_pull API References: <1312780773-23142-1-git-send-email-Baohua.Song@csr.com> <20110808081552.GI32513@linux-sh.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/8/2011 3:57 PM, Kyungmin Park wrote: > On Tue, Aug 9, 2011 at 3:24 AM, Grant Likely wrote: >> On Mon, Aug 8, 2011 at 2:15 AM, Paul Mundt wrote: >>> On Sun, Aug 07, 2011 at 10:19:33PM -0700, Barry Song wrote: >>>> Now there are many different implementations for GPIO pull configuration, for >>>> example: >>>> s3c_gpio_setpull() >>>> tegra_pinmux_set_pullupdown() >>>> chipcHw_setPinPullup() >>>> gpio_pullup() >>>> s3c2410_gpio_pullup() >>>> >>>> This patch adds a new generic gpio_set_pull API so that all SoCs can have unified >>>> codes. >>>> >>>> Signed-off-by: Barry Song >>> For arch/arm/mach-shmobile we also have gpio_pull_up() for board-g4evm.c >>> and gpio_pull_down() for board-mackerel.c. Both of these would benefit >>> from this sort of an API addition. >> I think I'm okay with this API change. Linus, what say you? How does >> this interact with your plans for pinctrl? > If gpiolib accept the pullup control. gpiolib is better place to > control gpio config. > then remains are the gpio driver strength, and power down mode > control. powerdown pull-up/down, powerdown in/out at samsung gpios. If we add this API - the remaining gpio controls like drive strength and function select could also be added, which eats into the pinmux domain. Linus W. had a patch earlier which added an API for a gpio config to be specified through gpiolib. " gpio: add a custom configuration mechanism to gpiolib" which is sort of an extensible model of this API. Thanks, Rohit > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > -- > 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/ Thanks, Rohit Vaswani -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.