Hi, This v18 revision of patch has minor changes since v17. Changes since v17: - Added: SPM changes submitted on v17, per Daniel's comments. - Moved: The DT documentation out of SPM driver patch. It was getting bigger. - Fixed: Per Kumar's comments on removing qcom,saw and other unused compatibles. - Fixed: The 8074/8084 DTs to have qcom,saw2 as well for the compatibles. - Fixed: Sparse reported missing static qualifier for qcom_cpuidle_ops. - Rebased: On top of Daniel's cpuidle/4.1 latest [2]. Changes since v16: - Dropped per-cpu cpuidle changes in the cpuidle-arm driver, Daniel submitted it as part of his series. - Rebase on top of [1]. - Return -ENXIO when qcom_cpuidle_init() detects SPM device is not probed yet. - Declare cpuidle_ops using CPUIDLE_METHOD_OF_DECLARE. Changes since v15: https://www.mail-archive.com/devicetree@xxxxxxxxxxxxxxx/msg64700.html - Clean up cpuidle-arm.c to use devm_kzalloc and print error codes. - Remove qcom,idle-state-stby as a DT mode, instead use the ARM WFI defined in ARM cpuidle driver for clock gating/standby modes. The platform driver will default to standby for all cpus after executing any low power state. This allows us to be completely compatible with generic ARM cpuidle driver and not send out cpu_pm notifications that are sent out for all 'platform states'. - Cleaned up comments around setting SPM states. - Platform idle state (SPC) starts at index 1, previous patch was overwritting ARM WFI state, which is mandated to be default state at index 0. - Removed duplicate cpu_pm_enter() and cpu_pm_exit() callbacks. - Re-introduce ARM_QCOM_CPUIDLE defconfig item to enable/disable QCOM cpuidle support. - Update documentation on standby state to indicate that this state is no longer defined in the DT. - Remove unused qcom,saw2-v1.* compatibles from documentation. - Rebased on top of SCM changes that were pulled in Kumar's 'soc' branch [2]. - Removed Reviewed-by tags from DT patches due to change in idle states. Changes since v14: - Support for cpuidle_ops - SPM probe changes to register cpuidle - Rebase on top of 4.0-rc1 - Remove SCM patches from series. Rebased on top of Kumar's tree - Removed cpuidle-qcom.c in favor of ARM generic cpuidle driver - Included Daniel's change for supporting creating cpuidle devices by platform Tested on: 8074, 8084. Thanks, Lina [1]. https://lkml.org/lkml/2015/3/20/165 [2]. https://lkml.org/lkml/2015/3/25/117 Lina Iyer (11): ARM: qcom: Add Subsystem Power Manager (SPM) driver devicetree: bindings: Update qcom,saw2 node bindings devicetree: bindings: Document qcom,idle-states ARM: cpuidle: Add cpuidle support for QCOM cpus ARM: dts: qcom: Add power-controller device node for 8074 Krait CPUs ARM: dts: qcom: Add power-controller device node for 8084 Krait CPUs ARM: dts: qcom: Update power-controller device node for 8064 Krait CPUs ARM: dts: qcom: Add idle states device nodes for 8974/8074 ARM: dts: qcom: Add idle states device nodes for 8084 ARM: dts: qcom: Add idle state device nodes for 8064 ARM: qcom: Update defconfig to enable cpuidle .../bindings/arm/msm/qcom,idle-state.txt | 84 +++++ .../devicetree/bindings/arm/msm/qcom,saw2.txt | 40 ++- arch/arm/boot/dts/qcom-apq8064.dtsi | 30 +- arch/arm/boot/dts/qcom-apq8084.dtsi | 40 ++- arch/arm/boot/dts/qcom-msm8974.dtsi | 40 ++- arch/arm/configs/qcom_defconfig | 2 + drivers/cpuidle/Kconfig.arm | 7 + drivers/soc/qcom/Kconfig | 7 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/spm.c | 385 +++++++++++++++++++++ 10 files changed, 617 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,idle-state.txt create mode 100644 drivers/soc/qcom/spm.c -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html