Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751807AbbKJLqn (ORCPT ); Tue, 10 Nov 2015 06:46:43 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:37766 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906AbbKJLql (ORCPT ); Tue, 10 Nov 2015 06:46:41 -0500 X-AuditID: cbfee691-f79d66d000001509-37-5641d91e4f23 From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.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 v4 0/9] samsung: pmu: split up SoC specific PMU data Date: Tue, 10 Nov 2015 17:12:55 +0530 Message-id: <1447155784-12667-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.4.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLLMWRmVeSWpSXmKPExsWyRsSkWlfupmOYwfklmhYfV79ks/g76Ri7 xesXhha9C66yWXw9vILRYtPja6wWl3fNYbOYcX4fk8Wp65/ZLBZt/cJu0bGM0YHb4/evSYwe O2fdZfe4c20Pm8fmJfUeV040sXr0bVnF6PF5k1wAexSXTUpqTmZZapG+XQJXxta5PawFn5Uq Zjx7zdzAuE+6i5GDQ0LARGLbOfsuRk4gU0ziwr31bF2MXBxCAisYJc7eaWeHSJhInPz8jR0i sZRRYsH1T4wQTiuTxLFbu1lBqtgEdCWevJ/LDGKLCGRLXGm8zwxSxCxwgFFix7pXjCAJYQEX idcX3rGDrGYRUJV4vTgXJMwr4CFxZOpTRoiL5CSWNteCtEoIbGKXWPJtD1gri4CAxLfJh1gg amQlNh1ghjhOUuLgihssExgFFzAyrGIUTS1ILihOSi8y1StOzC0uzUvXS87P3cQIDPXT/55N 3MF4/4D1IUYBDkYl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XTRtT/4P/d2/Zq33sem72hvoYbZYPuW309X1Yfe2PtomvP/x5L39 G7IjbBXvLHFY0Zqze4L+EjmhVWyuy4/sWilZ94E3oX25C+OauuDHbf4JMzeyTW/kMD6sxFKc kWioxVxUnAgAJ1UVl74CAAA= 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: 4619 Lines: 98 This patch series is a part of continuation work from following series [1], [2] and [3] 1: exynos: Move pmu driver to driver/soc folder and add exynos7 support http://www.spinics.net/lists/linux-samsung-soc/msg39797.html from Amit Daniel Kacchap 2: soc: samsung: pmu: split up SoC specific PMU data https://lkml.org/lkml/2015/1/7/12 from me 3: https://lkml.org/lkml/2015/10/26/245 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. I have tested on Peach-Pi (Exynos5880) based chromebook for boot and S2R functionality. These patches have been prepared on top of Kukjin Kim's for-next and on top of cherry-picked change from [4]. 4: ARM: EXYNOS: Constify local exynos_pmu_data structure https://lkml.org/lkml/2015/10/28/917 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 (9): ARM: EXYNOS: removing redundant code from regs-pmu.h ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf 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 ARM: EXYNOS: rearrange static and non-static functions of PMU driver 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-pmu.h | 24 - 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 | 1004 --------------------------- arch/arm/mach-exynos/regs-pmu.h | 702 ------------------- arch/arm/mach-exynos/suspend.c | 4 +- drivers/soc/samsung/Kconfig | 4 + drivers/soc/samsung/Makefile | 4 + drivers/soc/samsung/exynos-pmu.c | 183 +++++ drivers/soc/samsung/exynos-pmu.h | 45 ++ 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 ++++++++ include/linux/soc/samsung/exynos-pmu.h | 24 + include/linux/soc/samsung/exynos-regs-pmu.h | 693 ++++++++++++++++++ 20 files changed, 1836 insertions(+), 1740 deletions(-) delete mode 100644 arch/arm/mach-exynos/exynos-pmu.h delete mode 100644 arch/arm/mach-exynos/pmu.c delete mode 100644 arch/arm/mach-exynos/regs-pmu.h 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 create mode 100644 include/linux/soc/samsung/exynos-pmu.h create mode 100644 include/linux/soc/samsung/exynos-regs-pmu.h -- 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/