From patchwork Wed Sep 26 13:01:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11733 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 9CB2F24140 for ; Wed, 26 Sep 2012 13:01:44 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4AEDDA1904B for ; Wed, 26 Sep 2012 13:01:44 +0000 (UTC) Received: by ieje10 with SMTP id e10so1226541iej.11 for ; Wed, 26 Sep 2012 06:01:43 -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=f5taoneRtpT9gx2h5YvhFx42e3XbZwv84nxMEBl0uvs=; b=fnPXXXdJXoUIg/nQRX6l31Nvr6NE4kd+U2OAnzjsUq+U7WDGfcqrn2A2ERUHkWCko/ b7PkbGSDtPDm82BcoV9prjOnUDJV478ZNav8+XVkOzhc4vyyQC9ycTRxo1qZ8rQxRUni T2NT0pU21xYwWbfvUCuSFbBixGtqGaEOZnFkE2W1w0mOo8o4Em3HHbTKsn8HpDL38Tpa AlmBeSImtUZejGvhdTU7emdoP/13dV7Cydlhuu/KPOlmp4aiRQDkXQPKYFmlJG0+qn5B 0KuC2N3Z3wS7tdY6GijAAZqMbnvMDqPZ75f6h9/yMWjSaG38pl+HyJ2EadQmp2p3HuEb atmQ== Received: by 10.42.109.194 with SMTP id m2mr278934icp.48.1348664503530; Wed, 26 Sep 2012 06:01:43 -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.50.184.232 with SMTP id ex8csp353563igc; Wed, 26 Sep 2012 06:01:42 -0700 (PDT) Received: by 10.14.212.72 with SMTP id x48mr729461eeo.40.1348664501435; Wed, 26 Sep 2012 06:01:41 -0700 (PDT) Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com [207.126.144.139]) by mx.google.com with SMTP id w48si265069eeo.88.2012.09.26.06.01.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Sep 2012 06:01:41 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.139 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.139; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.139 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 eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKUGL8rTfsgJ9QXr7Rp8KRbpDDIGtdyRB7@postini.com; Wed, 26 Sep 2012 13:01:41 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 4EA9E167; Wed, 26 Sep 2012 13:01:09 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id F3C771688; Wed, 26 Sep 2012 13:01:08 +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 488C9A8074; Wed, 26 Sep 2012 15:01:03 +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; Wed, 26 Sep 2012 15:01:08 +0200 From: Linus Walleij To: , Cc: Stephen Warren , Anmar Oueja , Linus Walleij Subject: [PATCH] pinctrl: clarify idle vs sleep states Date: Wed, 26 Sep 2012 15:01:04 +0200 Message-ID: <1348664464-12079-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkRpTs/qSboh5KK4QCWs/uihC9fGFtGIlsgs+wGZ29YpTE+qizRbHmbmXgdT1wpf2HAM4mE From: Linus Walleij This pure documentation fix tries to align the "idle" and "sleep" pin states to the idle and suspend states from runtime PM. Signed-off-by: Linus Walleij --- include/linux/pinctrl/pinctrl-state.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/linux/pinctrl/pinctrl-state.h b/include/linux/pinctrl/pinctrl-state.h index 634608dc..2dbf71d 100644 --- a/include/linux/pinctrl/pinctrl-state.h +++ b/include/linux/pinctrl/pinctrl-state.h @@ -6,13 +6,15 @@ * @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. + * hogs to configure muxing and pins at boot, and also as a state + * to go into when returning from sleep and idle in + * .pm_runtime_resume() or ordinary .resume() for example. * @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. + * pm_runtime_idle() 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. + * common pm_runtime_suspend() or ordinary .suspend() function. */ #define PINCTRL_STATE_DEFAULT "default" #define PINCTRL_STATE_IDLE "idle"