Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5717492ybl; Tue, 14 Jan 2020 13:49:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyOwYL/cxsW++gvUfaErbHnojLeIxArwSion9YCdbnPg+mOXVKFKcqW6nlsN7w9Bz7whXID X-Received: by 2002:a05:6808:291:: with SMTP id z17mr17913392oic.94.1579038589639; Tue, 14 Jan 2020 13:49:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579038589; cv=none; d=google.com; s=arc-20160816; b=d3h0gEVBibVyHmf3pY4n3TclpP8hAX3fjvKHuebGwT5IPF6hfnIKdFuJCSOqsZeSz+ 7ww4YjT9zdL1U35uANfFkwdirHDd2w/Vo98vIFS/qW7ZeDfW4CjqwSKXAMNiZ/J2GlQA rySWnr7C+m4CKSum9HNC86nE3VY0LUDxnV0BZ21X0/heKY/Zvi+UY1scRq+quCIZEJnH 57eALHmypRylA1Cc4UA3epdyU5GbZ/AjQKPD+tjtw+47E4roqkSa6XoER25C3FfnpN7z BQeC1AT6Pl6nMpX72i7xGDZiU6mw2Gklhr+V94NeqrM072nwBj9k7hShWTqi5TR1FQz/ acQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=2Ig8g3aXIPzt/FAIScPFWcihXFAsJkmU6hO0mjaVmrM=; b=d9iUypSxU1FWbz8Sevmp5cys+9nFD1CBt1PuD5fg1Rkc/wyeQX9M5CrLwEmPJ8FZSN L37X2z6uPCS0WedsFh11dTe6ONWgEyqW+1nKU2VwdXakemHOQkM7tBu91V5n4B4csS79 uFPcBKPqF5wUXo3Hf61Sr9xtQgk5w9J62OM2HM1inK3NesS4YBLB6mozxENpJeQoPY4h 9Qe45jI28J/5SvnQWcwrnZ5tCIzKhSEIvKQyZ8mY+lC8hcHyE+nufsgiS+fARgTTEtaZ bnvCLiC/pT6qPCI5PRQ61SpG14owAdb9XCUhy4MSq5eid5xDyirIL/sJO7gBiE2lzduG sI7Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si9733038oti.316.2020.01.14.13.49.37; Tue, 14 Jan 2020 13:49:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728977AbgANVsg (ORCPT + 99 others); Tue, 14 Jan 2020 16:48:36 -0500 Received: from inva020.nxp.com ([92.121.34.13]:55816 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728928AbgANVse (ORCPT ); Tue, 14 Jan 2020 16:48:34 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 649BB1A140C; Tue, 14 Jan 2020 22:48:32 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6476B1A0201; Tue, 14 Jan 2020 22:48:26 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id C2864402CA; Wed, 15 Jan 2020 05:48:13 +0800 (SGT) From: Han Xu To: vkoul@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, esben@geanix.com, boris.brezillon@collabora.com Cc: festevam@gmail.com, linux-imx@nxp.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, han.xu@nxp.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] mtd: rawnand: gpmi: set the pinctrl state for suspend/reusme Date: Wed, 15 Jan 2020 05:44:03 +0800 Message-Id: <1579038243-28550-7-git-send-email-han.xu@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1579038243-28550-1-git-send-email-han.xu@nxp.com> References: <1579038243-28550-1-git-send-email-han.xu@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.17.1