Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932927AbbFJHsa (ORCPT ); Wed, 10 Jun 2015 03:48:30 -0400 Received: from mail-oi0-f41.google.com ([209.85.218.41]:36721 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754094AbbFJHsW (ORCPT ); Wed, 10 Jun 2015 03:48:22 -0400 MIME-Version: 1.0 In-Reply-To: <9333041871b27a3099b185e26b564e2a@agner.ch> References: <1433171567-24571-1-git-send-email-stefan@agner.ch> <9333041871b27a3099b185e26b564e2a@agner.ch> Date: Wed, 10 Jun 2015 09:48:21 +0200 Message-ID: Subject: Re: [RFC] pinctrl: pinctrl-imx: implement suspend/resume From: Linus Walleij To: Stefan Agner Cc: Zhi Li , Shawn Guo , Sascha Hauer , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , kernel list , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 23 On Thu, Jun 4, 2015 at 10:24 PM, Stefan Agner wrote: > I actually tried to experiment with pinctrl_pm_select_default_state and > pinctrl_pm_select_sleep_state. I think, one solution would be to create > sleep states for all drivers. However, it's not necessary to change to a > sleep state, since the controller looses the state anyway. What would be > required is having a function which allows to force the default state > for all pinctrl settings... As far as I can tell, there is no such > functionality currently...? Linus? You could do it that way, but it requires that the driver depends on CONFIG_PM as the states are not cached in the driver core otherwise (drivers/base/pinctrl.c). I have no strong opinion on the subject really... either way works. 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/