Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755121Ab1DTPNn (ORCPT ); Wed, 20 Apr 2011 11:13:43 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:50535 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752424Ab1DTPNm (ORCPT ); Wed, 20 Apr 2011 11:13:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=o57NTZIDfKOfbHdkvkehOo3P/LHoPxDIXJ7isVMh3mrMAhIocnE0QKtBXjSNa4+Myj dEIBEr8pIwNoWUK5T9DAlw3vTsftM/Qtt0u5U9sD2sRGOROFPsT5RNz14hXOOvP/dwkK bUpNZkyTOHybNFcMvPXwCci6uxMW8xIMHnslY= MIME-Version: 1.0 In-Reply-To: References: <1303076273-8093-1-git-send-email-linus.walleij@stericsson.com> <3F5641E3-C443-4541-9FDA-24D215597C1F@niasdigital.com> <20110418091902.13345132@lxorguk.ukuu.org.uk> <92FFDB9F-37F1-4618-A53D-FEF4151A4953@niasdigital.com> <20110418132629.12d9a106@lxorguk.ukuu.org.uk> <6C3F739A-A157-4796-9572-C6B0FAC2565E@niasdigital.com> <20110419093855.36910400@lxorguk.ukuu.org.uk> Date: Wed, 20 Apr 2011 17:13:41 +0200 Message-ID: Subject: Re: [PATCH 1/2] gpio: add pin biasing and drive mode to gpiolib From: Linus Walleij To: Haojian Zhuang Cc: Kyungmin Park , Alan Cox , Ben Nizette , linux-kernel@vger.kernel.org, Grant Likely , Lee Jones , linux-arm-kernel@lists.infradead.org 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 Content-Length: 1385 Lines: 36 2011/4/20 Haojian Zhuang : > Before suspend, it may be configured as some function that isn't GPIO. > Is it a goal > that avoid declaring gpio_request() for suspend and updating the setting of pin? I refer to that as a totally different use case "pinmux or padmux" which I think we are better off treating as totally orthogonal to GPIO. I have loose ideas to break pin/pad muxing into a separate driver directory under drivers/pinpadmux or something. Some people inevitably think that GPIO and pin/padmux are intertwined, but as far as I have seen they are not. However there may be a cross dependency so that a GPIO driver may need to export an additional pin/padmux interface or so, e.g we have a separate chip in I2C which can mux pins... However this is a separate issue altogether, I think we can assume pin/padmuxing is in the board code until we have a suitable solution for a framework for that. (Don't know if I'll be able to write one though.) > Are these two patches are post in mailing list? I can't find your > second patch in this > patch series? I can see it here ... ? Yours, Linus Walleij -- 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/