From patchwork Fri May 11 08:32:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 8531 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 5887823E13 for ; Fri, 11 May 2012 08:35:05 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 287E2A1835E for ; Fri, 11 May 2012 08:35:05 +0000 (UTC) Received: by ggnf1 with SMTP id f1so1371926ggn.11 for ; Fri, 11 May 2012 01:35:04 -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=jRWD5lj2Khk1fz6ibx8c+9AleWSaFH6PcyCIrDJ46yE=; b=omsrzrT5mNWuyLcPG4lxvWPXW2mgTrIjbNhvzh/aW3ZCVMFGwrtpV08MQuJEtJ2kcn SKUTYTIYPacCf2yukMqm912qgsnW4/xa6pDacvH+yRIKP0uiw/KLmMF/jyL3WAbxCGvZ mjNMpAleB8bNlNl+T9XiNDkmHtHA/BORXoyrnIXE+m4U2c8OlOHzDXQTRe8zDYbBT+DX ZnoXWupJiBO1PqYrZ9v1vRooidKRBFl5zAd9wp0xJ7amjtzLR9ZNpjM5g4Ghv9nnGSrN VtTVwVQ5qyEO1Lqs3199/APIgVghjKVZ4/3vpjYW/J8Ax2C3JwAJ9XladWZnoKUjX92c ITPQ== Received: by 10.50.89.168 with SMTP id bp8mr1143445igb.3.1336725304242; Fri, 11 May 2012 01:35:04 -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 q19csp158270ibj; Fri, 11 May 2012 01:35:03 -0700 (PDT) Received: by 10.14.198.8 with SMTP id u8mr619820een.58.1336725303028; Fri, 11 May 2012 01:35:03 -0700 (PDT) Received: from eu1sys200aog102.obsmtp.com (eu1sys200aog102.obsmtp.com. [207.126.144.113]) by mx.google.com with SMTP id s3si2681385eef.16.2012.05.11.01.32.32 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 01:35:03 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.113 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.113; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.113 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 eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKT6zOnqpW0/VIpR7HzW0O2tVssbehe9e0@postini.com; Fri, 11 May 2012 08:32:43 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 83A3D124; Fri, 11 May 2012 08:32:28 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9338E2766; Fri, 11 May 2012 08:32:27 +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 relay2.stm.gmessaging.net (Postfix) with ESMTPS id 9C42CA807E; Fri, 11 May 2012 10:32:23 +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; Fri, 11 May 2012 10:32:26 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Shawn Guo , Thomas Abraham , Dong Aisheng , Rajendra Nayak , Haojian Zhuang , Linus Walleij Subject: [PATCH 07/12 v2] pinctrl: add sleep state definition Date: Fri, 11 May 2012 10:32:23 +0200 Message-ID: <1336725143-25563-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: ALoCoQlEmkvaEy0+Dldm1Vma9fcpNC45RxEkUwoslQuMl3IofRLS+Xm0o6LSsNfF8c85Gq+khCQs 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. ChangeLog v1->v2: - Fixed terminology "on"->"into". 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..634608dc 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 + * into 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"