Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754494AbbLRDgM (ORCPT ); Thu, 17 Dec 2015 22:36:12 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:36942 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbbLRDgI (ORCPT ); Thu, 17 Dec 2015 22:36:08 -0500 X-AuditID: cbfee68f-f793a6d000001364-f0-56737f241c99 From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: kgene.kim@samsung.com, k.kozlowski@samsung.com, thomas.ab@samsung.com, amitdanielk@gmail.com, olof@lixom.net, khilman@linaro.org, arnd@arndb.de, Pankaj Dubey Subject: [PATCH v7 0/6] samsung: pmu: split up SoC specific PMU data Date: Fri, 18 Dec 2015 09:02:10 +0530 Message-id: <1450409536-30463-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrKLMWRmVeSWpSXmKPExsWyRsSkVle1vjjMoHUhq8XH1S/ZLP5OOsZu 8fqFoUXvgqtsFl8Pr2C02PT4GqvF5V1z2Cw+9x5htJhxfh+Txanrn9ksFm39wm7RsYzRgcfj 969JjB47Z91l97hzbQ+bx+Yl9R5XTjSxevRtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfG8+9L WQtOq1Y0THjH2sD4VaaLkZNDQsBEYv3Z7UwQtpjEhXvr2boYuTiEBFYwShw7eo4Jpuj0v+uM EIlZjBLrXlxngnBamSRmNE9hBaliE9CVePJ+LjNIQkSglVFi2f7/YFXMAgcYJXase8UIUiUs 4CKx9c0WsLksAqoSp/b8AbN5BTwk+rdOYe9i5ADaJyextLkWpFdCYBu7xKJNf9kh6gUkvk0+ xAJRIyux6QAzxHmSEgdX3GCZwCi4gJFhFaNoakFyQXFSepGxXnFibnFpXrpecn7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HyW vNlunyLHvqm5sN1spnvuGY2ZOZyBmxtebBCN0VES5ZxTPjXyhpj83eL3D2J+/VJKdlpZmGi7 boLNFuumn9WSu78V8Vktm1jidrNU9bybw93jSfstE4z+mO+UKyiUz/W/GfMl0/NL/+bo4OJl SizFGYmGWsxFxYkAnX/MJsUCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4957 Lines: 104 In this series I am splitting up SoC specific PMU configuration data into mach-exynos folder itself, before moving all of them under drivers/soc/samsung/. Also instead of making all changes in single patch it has been broken into SoC specific patches to avoid large size of patch. With this approach there will not be unwanted big churns just after adding exynos-pmu under drivers/soc/samsung. All these patches are just refactoring to keep minimal changes while moving exynos-pmu driver under drivers/soc/samsung/. Support for exynos7 PMU can be added on top of it, in such a manner that for ARM64 build, ARM related SoC's PMU will not get compiled and thus unnecessary increasing kernel image size. This series have been prepared on top of Krzysztof Kozlowski's next/stuff-late-not-split-per-branch branch, and it's just a rebase compared to V6 posted and reviewed here [1]. [1]: https://lkml.org/lkml/2015/11/17/15 For testing entire patchset on Peach-Pi (Exynos5880) based chromebook for boot and S2R functionality. Tested-by: Pankaj Dubey For testing entire patchset on on Trats2 (Exynos4412, S2R, reboot, poweroff) and Odroid XU3 (Exynos5422, reboot, poweroff). Tested-by: Krzysztof Kozlowski Changes since v6: - Rebasing on top of branch provided by Krzysztof, after resolving conflicts caused due to Alim's patches for adoptation of generic syscon for poweroff, reboot. - Included Tested-by tags on individual patches as per applicability. - Dropped patches v6 [1/9], v6 [2/9] as these are already present in above mentioned branch. - Dropped patch v6 [8/9] as after Alim's patch this patch no more required. Changes since v5: - Removed extra blank line from patch 5/9 and 6/9. - Modified soc/samsung/Kconfig for config EXNOS_PMU. Added depends on ARM. Changes since v4: - In v3 I missed to give -M flag to detect rename, which made patches hard to review, so resubmitting patches with rename detector flag. - Addressed review comments from Krzysztof. Changes since v3: - Keeping intact copyright dates in existing header files. - Addressed review comments from Krzysztof for v3. - Removing static inline function from exynos-pmu.h and keeping them in PMU driver. - Added new patch (2/9) for fixing potential null pointer reference in exynos_sys_powerdown_conf. - Added new patch (8/9) for rearranging static and non-static function for better readability. Changes since v2: - Removed Amit's Samsung id as it's no more valid. - Rebased on latest kgene tree. - Removed redundant code from regs-pmu.h Pankaj Dubey (6): ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung" ARM: EXYNOS: split up exynos3250 SoC specific PMU data ARM: EXYNOS: split up exynos4 SoC specific PMU data ARM: EXYNOS: split up exynos5250 SoC specific PMU data ARM: EXYNOS: split up exynos5420 SoC specific PMU data drivers: soc: Add support for Exynos PMU driver arch/arm/mach-exynos/Kconfig | 1 + arch/arm/mach-exynos/Makefile | 2 +- arch/arm/mach-exynos/exynos.c | 4 +- arch/arm/mach-exynos/mcpm-exynos.c | 2 +- arch/arm/mach-exynos/platsmp.c | 2 +- arch/arm/mach-exynos/pm.c | 4 +- arch/arm/mach-exynos/pmu.c | 967 --------------------- arch/arm/mach-exynos/suspend.c | 4 +- drivers/soc/samsung/Kconfig | 4 + drivers/soc/samsung/Makefile | 2 + drivers/soc/samsung/exynos-pmu.c | 141 +++ drivers/soc/samsung/exynos-pmu.h | 44 + drivers/soc/samsung/exynos3250-pmu.c | 175 ++++ drivers/soc/samsung/exynos4-pmu.c | 223 +++++ drivers/soc/samsung/exynos5250-pmu.c | 196 +++++ drivers/soc/samsung/exynos5420-pmu.c | 280 ++++++ .../linux/soc/samsung}/exynos-pmu.h | 6 +- .../linux/soc/samsung/exynos-regs-pmu.h | 6 +- 18 files changed, 1080 insertions(+), 983 deletions(-) delete mode 100644 arch/arm/mach-exynos/pmu.c create mode 100644 drivers/soc/samsung/exynos-pmu.c create mode 100644 drivers/soc/samsung/exynos-pmu.h create mode 100644 drivers/soc/samsung/exynos3250-pmu.c create mode 100644 drivers/soc/samsung/exynos4-pmu.c create mode 100644 drivers/soc/samsung/exynos5250-pmu.c create mode 100644 drivers/soc/samsung/exynos5420-pmu.c rename {arch/arm/mach-exynos => include/linux/soc/samsung}/exynos-pmu.h (81%) rename arch/arm/mach-exynos/regs-pmu.h => include/linux/soc/samsung/exynos-regs-pmu.h (99%) -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/