From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748Ab3EULVa (ORCPT ); Tue, 21 May 2013 07:21:30 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:58852 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855Ab3EULV2 (ORCPT ); Tue, 21 May 2013 07:21:28 -0400 MIME-Version: 1.0 In-Reply-To: <1368765198-25550-1-git-send-email-dianders@chromium.org> References: <1368746388-20194-1-git-send-email-dianders@chromium.org> <1368765198-25550-1-git-send-email-dianders@chromium.org> Date: Tue, 21 May 2013 13:21:27 +0200 Message-ID: Subject: Re: [PATCH v3] pinctrl: samsung: fix suspend/resume functionality From: Linus Walleij To: Doug Anderson Cc: Tomasz Figa , Kukjin Kim , =?ISO-8859-1?Q?Heiko_St=FCbner?= , Olof Johansson , Stephen Warren , Thomas Abraham , Prathyush K , linux-samsung-soc , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 17, 2013 at 6:33 AM, Doug Anderson wrote: > The GPIO states need to be restored after s2r and this is not currently > supported in the pinctrl driver. This patch saves the gpio states before > suspend and restores them after resume. > > Saving and restoring is done very early using syscore_ops and must > happen before pins are released from their powerdown state. > > Patch originally from Prathyush K but > rewritten by Doug Anderson . > > Signed-off-by: Prathyush K > Signed-off-by: Doug Anderson > --- > Changes in v3: Applied to my fixes branch for v3.10 with some collected Tested-bys/Acks. Yours, Linus Walleij