From patchwork Tue May 8 09:45:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 8452 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B33BF23E20 for ; Tue, 8 May 2012 09:46:01 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7C4E5A18370 for ; Tue, 8 May 2012 09:46:01 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so173733yen.11 for ; Tue, 08 May 2012 02:46:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:mime-version:content-type :x-gm-message-state; bh=rkjJTrnjpC2+FmQOq7Y4jxo6V1miLgvsfPs4eulmzOk=; b=TzQXr0r/scwzWejB4phQ8woJVLauZuTqt1x8cx4bbjt0EftfDoefO+7ADRxskxfXA2 lgUr5JHvsagvYBhrLL8mKf81Gb+GB0NPwSI1Nj/jnkCfgBHfZ2RxGzILL6vthbkEEccm hW4Fjj1mPpha578lM9CJgbH2Uz3afJvIYHwpteHfO3CR93Md01lZJvGSFdesOnH71R+M /umigMzf4r2KpnS2jTv+T61WqJLBcgFK6q8IwYQg9bcGGogktAzGEmRob22b3VyrrJUv pmiNVow5qfg0owx7YrElG+My+kgNroRcRsYrPBUfDzAkyKh7W43LDDbOCF1k4Huw27fE DTOw== Received: by 10.42.142.71 with SMTP id r7mr9365371icu.7.1336470361095; Tue, 08 May 2012 02:46:01 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.73.147 with SMTP id q19csp187546ibj; Tue, 8 May 2012 02:46:00 -0700 (PDT) Received: by 10.14.101.10 with SMTP id a10mr3204736eeg.20.1336470359962; Tue, 08 May 2012 02:45:59 -0700 (PDT) Received: from eu1sys200aog119.obsmtp.com (eu1sys200aog119.obsmtp.com. [207.126.144.147]) by mx.google.com with SMTP id a11si5983866een.18.2012.05.08.02.45.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 May 2012 02:45:59 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.147; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) smtp.mail=linus.walleij@stericsson.com Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKT6jrK5aWo4GXhYuZVCfKyuyMYWdrNF4l@postini.com; Tue, 08 May 2012 09:45:59 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3046BDE; Tue, 8 May 2012 09:45:13 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 89C86267E; Tue, 8 May 2012 09:45:13 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 7137D24C2F0; Tue, 8 May 2012 11:45:07 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.83.0; Tue, 8 May 2012 11:45:12 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Shawn Guo , Thomas Abraham , Dong Aisheng , Rajendra Nayak , Haojian Zhuang , Linus Walleij Subject: [PATCH 07/12] pinctrl: add sleep state definition Date: Tue, 8 May 2012 11:45:10 +0200 Message-ID: <1336470310-23709-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.9.2 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmU3iUBbWDl8MWXcoabEURjZNaYk5v+I4cPlXDQG2mYLajCJxpeC2GNjX9/GvXtvhzvW6Om From: Linus Walleij There is an IDLE definition in the pinctrl framework, but for ux500 SLEEP is more apropriate. I've added some comments on the semantics of the common states so as to avoid misunderstandings. Signed-off-by: Linus Walleij --- include/linux/pinctrl/pinctrl-state.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/pinctrl/pinctrl-state.h b/include/linux/pinctrl/pinctrl-state.h index 3920e28..85bc1fe 100644 --- a/include/linux/pinctrl/pinctrl-state.h +++ b/include/linux/pinctrl/pinctrl-state.h @@ -2,5 +2,18 @@ * Standard pin control state definitions */ +/** + * @PINCTRL_STATE_DEFAULT: the state the pinctrl handle shall be put + * on as default, usually this means the pins are up and ready to + * be used by the device driver. This state is commonly used by + * hogs to configure muxing and pins at boot. + * @PINCTRL_STATE_IDLE: the state the pinctrl handle shall be put into + * when the pins are idle. Could typically be set from a + * pm_runtime_suspend() operation. + * @PINCTRL_STATE_SLEEP: the state the pinctrl handle shall be put into + * when the pins are sleeping. Could typically be set from a + * common suspend() function. + */ #define PINCTRL_STATE_DEFAULT "default" #define PINCTRL_STATE_IDLE "idle" +#define PINCTRL_STATE_SLEEP "sleep"