cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver
authorStephan Gerhold <stephan@gerhold.net>
Thu, 16 Apr 2020 08:58:21 +0000 (10:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 May 2020 08:46:01 +0000 (10:46 +0200)
commita871be6b8eee13a35a3e8e56c62770ef17ee9220
tree1577c991889e2ccf903cc131c5f2aedcdbc332f9
parenta0bd8a2780fab2c8008e128e8a55995d8923e638
cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver

The Qualcomm SPM cpuidle driver seems to be the last driver still
using the generic ARM CPUidle infrastructure.

Converting it actually allows us to simplify the driver,
and we end up being able to remove more lines than adding new ones:

  - We can parse the CPUidle states in the device tree directly
    with dt_idle_states (and don't need to duplicate that
    functionality into the spm driver).

  - Each "saw" device managed by the SPM driver now directly
    registers its own cpuidle driver, removing the need for
    any global (per cpu) state.

The device tree binding is the same, so the driver stays
compatible with all old device trees.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Lina Iyer <ilina@codeaurora.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
MAINTAINERS
drivers/cpuidle/Kconfig.arm
drivers/cpuidle/Makefile
drivers/cpuidle/cpuidle-qcom-spm.c [new file with mode: 0644]
drivers/soc/qcom/Kconfig
drivers/soc/qcom/Makefile
drivers/soc/qcom/spm.c [deleted file]