From patchwork Mon May 21 06:34:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 136429 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp4191642lji; Sun, 20 May 2018 23:35:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqpz/znOo1UrgAUgofMLO8+YTWrIcbJTccUgqYt74lcEJTaFzyLQfa2TNVMZPRxnTswfO40 X-Received: by 2002:a63:7f07:: with SMTP id a7-v6mr14771171pgd.173.1526884507203; Sun, 20 May 2018 23:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526884507; cv=none; d=google.com; s=arc-20160816; b=N0R5wH9b4NOiF9U6gknGPNwJjDGDZyGefojGvHnZiG4DQn7w69nGggPL7lbDGjKNxf /5kTaXGvoJeV6c/v1KDomeFBF9dvBY+MwC8O5OthoWrGn6t6HNuDprNuu+PLduY5Y8ru 3zhusTdMB5QQMnudYvhJvEW8f7UJ7cI8WzTmZJOlJozYUSz7lBuey62nwQyDotTw3oVF WZ6+ytKXOyj+Pqr1AryKH+pJ9LqMNDSFraxxBfYfmwwHqbwBVZUn02JGw11NnXK1YpKe NXuqyeNTn04Ta9ajEf7hFbW/Sa1NuCGRplI0YVC28Ie+xq9IH/Q22hIG6rd8Kyhi3nBa gHIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=iEZS5MIrPhGgFIEK2/qiu5+unP4mF5wIg+TYfsbTDEk=; b=ie2PDW9n6PFvWdZCFgq/+bivwap/MTtnV79UIckanpMaO00fFQdaMgsQC+kMh3t4fk yVBIOM561AbeEvlxCAo2ihwe/9LZfoSIHCJIiRD6g4SiL6/gIbSSu7Uuyk7wR0WCHEp0 X8esFL4gBEFZ0GeSNtyi6MF0iEhzYjZ2wj8pBPqHYmieudRhY4SuFSKJwSmkv8puIuhJ 2Xw5YIJd8vZCD66CcRfYbWlrwwxeqW9K0BYyicYyQCGSQoNiNSVrTHpcrGHh62z9ffkH Osn07+dI0K23lEoF8KrZwgk8Kr7aUKu7+vhPRUET8I8FBOh4w06j8A1RFJHA5kkVspwm lpyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=J2xVPu5G; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5-v6si12771417pfe.63.2018.05.20.23.35.06; Sun, 20 May 2018 23:35:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=J2xVPu5G; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750945AbeEUGfF (ORCPT + 3 others); Mon, 21 May 2018 02:35:05 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:54407 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbeEUGfE (ORCPT ); Mon, 21 May 2018 02:35:04 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180521063501euoutp0182aa90905d7d89255ffb9669d49b6dba~wlV0-HZeg0108701087euoutp01G; Mon, 21 May 2018 06:35:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180521063501euoutp0182aa90905d7d89255ffb9669d49b6dba~wlV0-HZeg0108701087euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1526884501; bh=odXgNiFopvUJsHsFRd7nUuUMYs/wVI+0+CHHn+sszJU=; h=From:To:Cc:Subject:Date:References:From; b=J2xVPu5GPshmyo/jCKI/oZIGfTYoDXqOFMOPlkerpmxh0bnG2yngBaxmEz24hFQNC cckV0VCBOz/aI9tnoAVJF7pSNazHwTMykvpRGo+SnnG2qrbQDhSvjoxcUGT7oAB6h5 LOCGQaiKmFzhF9xAK1Iot9347x9a5CpOq1QGFpss= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180521063500eucas1p26c89e27b4cac2ffdf94deb23e01dbd8b~wlVz8zTxa1395413954eucas1p2b; Mon, 21 May 2018 06:35:00 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DB.27.10409.398620B5; Mon, 21 May 2018 07:35:00 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180521063459eucas1p2be009346fb60a289e3b7947ebf577c3d~wlVzOkbo11618416184eucas1p2S; Mon, 21 May 2018 06:34:59 +0000 (GMT) X-AuditID: cbfec7f5-b5fff700000028a9-a2-5b0268936a21 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C2.F0.04178.398620B5; Mon, 21 May 2018 07:34:59 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9200BR8FM86470@eusync4.samsung.com>; Mon, 21 May 2018 07:34:59 +0100 (BST) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz , Chanwoo Choi Subject: [PATCH] pinctrl: samsung: Fix suspend/resume for Exynos5433 GPF1..5 banks Date: Mon, 21 May 2018 08:34:49 +0200 Message-id: <20180521063449.4086-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAIsWRmVeSWpSXmKPExsWy7djPc7pTMpiiDdZuYrTYOGM9q8X1L89Z Lc6f38BuMeXPciaLzfP/MFrMOL+PyWLtkbvsFofftLNarNr1h9GB02PnrLvsHptWdbJ53Lm2 h82jb8sqRo/Pm+QCWKO4bFJSczLLUov07RK4MvbPP8VY8Jqz4uKaaawNjP/Zuxg5OSQETCSO TLzM0sXIxSEksIJRouvRByjnM6PE5pnTWGGqrnxaAmYLCSxjlPiyNQKiqIFJYtL3fSwgCTYB Q4mut11sILaIgKPEzw2rWEGKmAW2MUmc7zoElODgEBYIkbj6IBSkhkVAVeLz6mlMIDavgI3E ys9PmSGWyUs8mz6PHaRXQuAvq0TX0i6ohIvE/H1roWxhiVfHt0D9ICPR2XGQCWS+hEC5xL8T WRDhFkaJtd/0IWxricPHL4I9wCzAJzFp23RmiHJeiY42IYgSD4nvxyDOlwA6/+Xj7cwQ/8ZK zN0/m3UCo+QCRoZVjOKppcW56anFxnmp5XrFibnFpXnpesn5uZsYgfF4+t/xrzsY9/1JOsQo wMGoxMN74wVjtBBrYllxZe4hRgkOZiURXv/HQCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8cRp1 UUIC6YklqdmpqQWpRTBZJg5OqQZG02nW1gHOvXPsjxsIdV90Slk+1TL51eM5lQmqihdun59g yDpnmfHrVc+EFv5cd6OU92RaacbtxsJd++RVmTYz/XWQNH1o6dsnOn3bdtaQ+8bH4h2nH77B rbifVXeBgbJGnUZcVwGnzb33YYeMje5Zyn3M0dufVS4taLfCXF7Simue8JGIvkdKLMUZiYZa zEXFiQAJ8jh6wwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOJMWRmVeSWpSXmKPExsVy+t/xa7qTM5iiDRrvSlhsnLGe1eL6l+es FufPb2C3mPJnOZPF5vl/GC1mnN/HZLH2yF12i8Nv2lktVu36w+jA6bFz1l12j02rOtk87lzb w+bRt2UVo8fnTXIBrFFcNimpOZllqUX6dglcGfvnn2IseM1ZcXHNNNYGxv/sXYycHBICJhJX Pi1h7WLk4hASWMIosWf+IhaQhJBAE5PErC1JIDabgKFE19suNhBbRMBR4ueGVawgNrPADiaJ O0dVuxg5OIQFQiSuPggFCbMIqEp8Xj2NCcTmFbCRWPn5KTPELnmJZ9PnsU9g5FrAyLCKUSS1 tDg3PbfYUK84Mbe4NC9dLzk/dxMjMDi2Hfu5eQfjpY3BhxgFOBiVeHhvvGCMFmJNLCuuzD3E KMHBrCTC6/8YKMSbklhZlVqUH19UmpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNT qoFR333JTiNupwrXDtsSg8sKT3J1NHWP8e+XXfSTbYKwZklqrNtEbrG9vnrX384t5DOREvy0 hf+B3YLq+JBggfTrK1NmcbDKzmqcw9TsL9ObP8uoYf09pW/v3176Piu28fC8GQfD19d8T2NS EzQ+sflN8YyZGy9X8jlxveDUnJG+ao7gyk9hFreUWIozEg21mIuKEwG78btgCgIAAA== X-CMS-MailID: 20180521063459eucas1p2be009346fb60a289e3b7947ebf577c3d X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180521063459eucas1p2be009346fb60a289e3b7947ebf577c3d X-RootMTR: 20180521063459eucas1p2be009346fb60a289e3b7947ebf577c3d References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org GPF1..5 banks in Exynos5433 are located in two pinctrl devices: ALIVE and IMEM. Although they are partially located in ALIVE section, the state of their registers in IMEM section is lost after suspend/resume cycle. To properly handle such case, those banks have to be defined with standard 'exynos5433_bank_type_off' tpye (with PINCFG_TYPE_CON_PDN and PINCFG_TYPE_PUD_PDN register offsets). This automatically instructs the generic Samsung pinctrl suspend/resume code to save and restore state of those registers. Signed-off-by: Marek Szyprowski --- drivers/pinctrl/samsung/pinctrl-exynos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.h b/drivers/pinctrl/samsung/pinctrl-exynos.h index 7639b926c5c1..6ae81b44ba46 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.h +++ b/drivers/pinctrl/samsung/pinctrl-exynos.h @@ -103,7 +103,7 @@ #define EXYNOS5433_PIN_BANK_EINTW_EXT(pins, reg, id, offs, pctl_idx) \ { \ - .type = &exynos5433_bank_type_alive, \ + .type = &exynos5433_bank_type_off, \ .pctl_offset = reg, \ .nr_pins = pins, \ .eint_type = EINT_TYPE_WKUP, \