Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9454174ybl; Fri, 17 Jan 2020 12:17:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwUdd992KgUUHtvCFJ+WTyvSOqnGxkDhC/09yJs0Y8klXLTDFBVlETb0q5EX1/HBJm1Rqf+ X-Received: by 2002:a05:6808:618:: with SMTP id y24mr4538758oih.86.1579292221800; Fri, 17 Jan 2020 12:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579292221; cv=none; d=google.com; s=arc-20160816; b=FLy9KxUL4b95ul7jFLuQkETKU5t4fVI4Q4Gn5miYOcEzQ/+ogZsFGK8ffTXfPcunOZ U6aIW1l8enUw3AVDVgxRpijmjh+sOEXT/4m8xFbttxwLgfAM+4POIfHFWUJXOFM9tSiL LLYV/n7bQWbDLvTjEuYZD7rZbMXB23Gsk0ZymUvsFuF5CqSesI56VGQuFbmXL4erhYQW ok+/6lE6P+xIBSHjR1jvJUOGop3Y8zm8F0S8D0Fc950En1+LoZ6+7cKifK4HGX5P9Jdf bayk5w8ZLTNgT291vuEvKj/4N9nysEV7Zt7gL5uj5atwCqSOIFfJ/6PsirLrm202/Lu1 JCfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=IT7/3jqYxujVVXYCUo+S/ruunZfX/LCPqWcCKMPI59k=; b=Kj16oGBiIl7KIDJPmRCOXzJDAYcMYblkPJMtRalnxNICaIcGZCaAH0Yi63lkpfL8+i WWdIhU6jMvyAvkQn6YPvkK2gCGsta+sgeAT6CVuEr5F6vjvlrD+9/nQzjDNs9xbmPhTa zgr92r5e6WjiSWsF+1ZLhK+7eeuAKBmfaJwtHGaAugR1dV647jsl0wOwvJXNed93eYv0 /hopjM63x/28ILek+NJziso55UJtebexdOvdB0CLpi2AV5ca0n5B0CGKLs41pnBa53dv KF4OqjvKApVRfJGMmuK4dA6lmC8av5ZVzvTPGlxOOkzVK94DJ6a6m5v7oSTt9CkI0Iuf OJoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b="b/n+rnpA"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p28si14355547oth.296.2020.01.17.12.16.49; Fri, 17 Jan 2020 12:17:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b="b/n+rnpA"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729690AbgAQUPs (ORCPT + 99 others); Fri, 17 Jan 2020 15:15:48 -0500 Received: from first.geanix.com ([116.203.34.67]:55076 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727519AbgAQUPs (ORCPT ); Fri, 17 Jan 2020 15:15:48 -0500 Received: from localhost (87-49-44-45-mobile.dk.customer.tdc.net [87.49.44.45]) by first.geanix.com (Postfix) with ESMTPSA id 8A681AB7CF; Fri, 17 Jan 2020 20:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1579292096; bh=NyD2V5SZSfQVTYmJ6N+L70KBjajwnojRIy5BahhEoVQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=b/n+rnpA3v2O8rwAeqUqPDB/3pEwDc8aT2Fzok20ORw+bUJDTkgOWQJHZ3Eb86Nia h98IRvImFLnZ3NQRetCb6D/15fc32Ni9LV793Q5O3DKiP92rHDevyMv5bwJLFN0Ta6 ctOCLIZmzJBbNrwj5Z2qa7uSVgnhjj37BGjVLtTy5oUdnotiRsWizk+MAELt9JT9KH GFdOjdO64TpbS+k62YS0jqpEbH46IEswdqmK+kaLNugVhwRmefu4zDFGZCI48g0Lsf W4gUgVPD8KoWVI0J28kJEVZhPwjJMfaGqologNqBxhwXb0FMrHeMhgdOTg9/hJ2g9S as4l4hd/ssMvQ== From: Esben Haabendal To: Han Xu Cc: vkoul@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, boris.brezillon@collabora.com, festevam@gmail.com, linux-imx@nxp.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] mtd: rawnand: gpmi: set the pinctrl state for suspend/reusme References: <1579038243-28550-1-git-send-email-han.xu@nxp.com> <1579038243-28550-7-git-send-email-han.xu@nxp.com> Date: Fri, 17 Jan 2020 21:15:44 +0100 In-Reply-To: <1579038243-28550-7-git-send-email-han.xu@nxp.com> (Han Xu's message of "Wed, 15 Jan 2020 05:44:03 +0800") Message-ID: <87wo9pvnyn.fsf@geanix.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=4.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=disabled version=3.4.3 X-Spam-Checker-Version: SpamAssassin 3.4.3 (2019-12-06) on ea2d15de10a4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Han Xu writes: > set the correct pinctrl state in system pm suspend/resume ops > > Signed-off-by: Han Xu > --- > drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c > index 73644c96fa9b..de1e3dbb2eb1 100644 > --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c > +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > #include > #include "gpmi-nand.h" > #include "gpmi-regs.h" > @@ -2692,6 +2693,7 @@ static int gpmi_pm_suspend(struct device *dev) > { > int ret; > > + pinctrl_pm_select_sleep_state(dev); > ret = pm_runtime_force_suspend(dev); > > return ret; > @@ -2708,6 +2710,8 @@ static int gpmi_pm_resume(struct device *dev) > return ret; > } > > + pinctrl_pm_select_default_state(dev); > + > /* re-init the GPMI registers */ > ret = gpmi_init(this); > if (ret) { Acked-by: Esben Haabendal