From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757145Ab3GQUzb (ORCPT ); Wed, 17 Jul 2013 16:55:31 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:59891 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403Ab3GQUza (ORCPT ); Wed, 17 Jul 2013 16:55:30 -0400 Message-ID: <51E704BF.20508@wwwdotorg.org> Date: Wed, 17 Jul 2013 14:55:27 -0600 From: Stephen Warren User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: Tony Lindgren CC: linus.walleij@linaro.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/4] pinctrl: Allow pinctrl to have multiple active states References: <20130716090310.5541.36777.stgit@localhost> <20130716090534.5541.60381.stgit@localhost> In-Reply-To: <20130716090534.5541.60381.stgit@localhost> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/16/2013 03:05 AM, Tony Lindgren wrote: > It's quite common that we need to dynamically change some pins for a > device for runtime PM, or toggle a pin between rx and tx. Changing all > the pins for a device is not efficient way of doing it. > > So let's allow setting up multiple active states for pinctrl. Currently > we only need PINCTRL_STATIC and PINCTRL_DYNAMIC, where PINCTRL_STATIC > covers the current default pins, and PINCTRL_DYNAMIC holds the dynamic > pins that need to be toggled. > diff --git a/drivers/pinctrl/core.h b/drivers/pinctrl/core.h > +enum pinctr_states { s/pinctr/pinctrl/