From patchwork Mon Jan 16 06:44:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 91541 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1290793qgi; Sun, 15 Jan 2017 22:46:03 -0800 (PST) X-Received: by 10.84.238.131 with SMTP id v3mr48083412plk.143.1484549163105; Sun, 15 Jan 2017 22:46:03 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si20599715pgj.212.2017.01.15.22.46.02; Sun, 15 Jan 2017 22:46:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbdAPGqB (ORCPT + 13 others); Mon, 16 Jan 2017 01:46:01 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:55474 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751144AbdAPGp1 (ORCPT ); Mon, 16 Jan 2017 01:45:27 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV00AQL1FONH50@mailout3.w1.samsung.com>; Mon, 16 Jan 2017 06:45:24 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170116064523eucas1p2310b7ae2a98e2f3729936b5db5f8bc61~aLZAIQO1X2654026540eucas1p27; Mon, 16 Jan 2017 06:45:23 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 63.26.30614.30C6C785; Mon, 16 Jan 2017 06:45:23 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170116064523eucas1p161a8e060b2883c076fc470ce7b522332~aLY-dedBn0708307083eucas1p1l; Mon, 16 Jan 2017 06:45:23 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-7e-587c6c036be0 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 53.9B.06687.A3C6C785; Mon, 16 Jan 2017 06:46:18 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJV00BS81FJUN70@eusync2.samsung.com>; Mon, 16 Jan 2017 06:45:23 +0000 (GMT) From: Marek Szyprowski To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Linus Walleij , Tomasz Figa , Bartlomiej Zolnierkiewicz Subject: [PATCH 00/12] Move pad retention control to Exynos pin controller driver Date: Mon, 16 Jan 2017 07:44:55 +0100 Message-id: <1484549107-5957-1-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsWy7djP87rMOTURBhP+KlpsnLGe1eL8+Q3s FlP+LGey2PT4GqvF5vl/GC0+9x5htJhxfh+Txdojd9ktDr9pZ7VYtesPowOXx85Zd9k9Nq3q ZPO4c20Pm8fmJfUefVtWMXp83iQXwBbFZZOSmpNZllqkb5fAlfFn/RfWguPiFRu+72RtYNwp 1MXIySEhYCIx6/d6RghbTOLCvfVsXYxc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AVWJ7dMawWxeAXeJ+4/+QO2Tkzh5bDLrBEbuBYwM qxhFUkuLc9Nziw31ihNzi0vz0vWS83M3MQLDeNuxn5t3MF7aGHyIUYCDUYmH98eu6ggh1sSy 4srcQ4wSHMxKIrxumTURQrwpiZVVqUX58UWlOanFhxhNgZZPZJYSTc4HxlheSbyhiaG5paGR sYWFuZGRkjhvyYcr4UIC6YklqdmpqQWpRTB9TBycUg2MXodPebgLGaQWnex0T5f92PI/3eTl s028Lya+2sa1vnXlDRvpBYcLWwR17jVfvLmgWT3UO2HhzuObV4mtC49L/7zYs+9JtKLcEkaX ixWekRbtRzU6Iovr+Zw3zdzVxfXyymLrdtded6sLm21ZOG+uyl3uk/jrw/eyLtdley8nZkjK XZt4MjNYiaU4I9FQi7moOBEAXEVC8nkCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116064523eucas1p161a8e060b2883c076fc470ce7b522332 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170116064523eucas1p161a8e060b2883c076fc470ce7b522332 X-RootMTR: 20170116064523eucas1p161a8e060b2883c076fc470ce7b522332 References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hello, This patchset is a follow-up of my work on adding runtime PM support to Exynos pin controller driver: http://www.spinics.net/lists/arm-kernel/msg550161.html Runtime PM support itself needs a bit more discussion, so lets first focus on the prerequisites. In case of Exynos pin controller driver it is a pad retention control. In current code it was handled by machine and PMU code and had no relation to what pin controller driver does. This patch series moves pad retention control to pin controller driver. While implmenting it, I also did a little cleanup of both Exynos PMU and pin controller drivers. Patches are based on linux-next from 2017.01.16 with Exynos4415 support removal patch applied: https://lkml.org/lkml/2017/1/14/137 Changelog: v1: - removed the need to add PMU phandles to all pin controller nodes, so old DTBs are properly supported. This has been achieved by getting PMU regmap from the "exynos-pmu" device of fixed name. - more cleanup in Exynos pin controller driver: added missing entries in DT documentation, removed "memory allocation failed" messages and added initconst annotations. - added support for s5pv210. - reworked retention control code to be simpler and ready for adding Exynos5433 support. v0: http://www.spinics.net/lists/arm-kernel/msg550161.html - initial version - part of "Runtime PM for Exynos pin controller driver" patchset Patch summary: Marek Szyprowski (12): soc: samsung: pmu: Use common device name to let others to find it easily soc: samsung: pmu: Use of_device_get_match_data helper soc: samsung: pmu: Remove messages for failed memory allocation pinctrl: samsung: Document Exynos3250 SoC support pinctrl: samsung: Remove messages for failed memory allocation pinctrl: samsung: Add missing initconst annotation pinctrl: samsung: Remove dead code pinctrl: samsung: Use generic of_device_get_match_data helper pinctrl: samsung: Add infrastructure for pin-bank retention control pinctrl: samsung: Move retention control from mach-exynos to the pinctrl driver pinctrl: samsung: Move retention control from mach-s5pv210 to the pinctrl driver pinctrl: samsung: Replace syscore ops with standard platform device pm_ops .../bindings/pinctrl/samsung-pinctrl.txt | 1 + arch/arm/mach-exynos/suspend.c | 64 ------ arch/arm/mach-s5pv210/pm.c | 7 - arch/arm/mach-s5pv210/regs-clock.h | 4 - drivers/pinctrl/samsung/pinctrl-exynos.c | 235 +++++++++++++++++++-- drivers/pinctrl/samsung/pinctrl-s3c64xx.c | 12 +- drivers/pinctrl/samsung/pinctrl-samsung.c | 122 +++-------- drivers/pinctrl/samsung/pinctrl-samsung.h | 42 ++++ drivers/soc/samsung/exynos-pmu.c | 12 +- include/linux/soc/samsung/exynos-pmu.h | 19 ++ 10 files changed, 321 insertions(+), 197 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html