From 1a55bb30e0b6d6fd8bc4001eb95cfedb56ae8b7b Mon Sep 17 00:00:00 2001 From: Dhoat Harpal Date: Tue, 9 Aug 2016 17:07:43 +0530 Subject: [PATCH] soc: qcom: sleepstate: add sleep state compatible entry Current sleep state entry compatible string is tied with remote processor ID which is not always true. Use generic compatible string for sleep state entry to support for any remote processor ID. CRs-Fixed: 1043377 Change-Id: I6ef2810b07960006b0fe4c573d5ce2bead90ee97 Signed-off-by: Dhoat Harpal --- .../devicetree/bindings/arm/msm/sleepstate-smp2p.txt | 4 +++- drivers/soc/qcom/smp2p_sleepstate.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/msm/sleepstate-smp2p.txt b/Documentation/devicetree/bindings/arm/msm/sleepstate-smp2p.txt index ad1067232870..adfa94f9d1ff 100644 --- a/Documentation/devicetree/bindings/arm/msm/sleepstate-smp2p.txt +++ b/Documentation/devicetree/bindings/arm/msm/sleepstate-smp2p.txt @@ -1,7 +1,9 @@ Qualcomm Technologies, Inc. SMSM Point-to-Point (SMP2P) Sleepstate driver Required properties: --compatible : should be "qcom,smp2pgpio_sleepstate_3_out"; +-compatible : should be one of the following: +- "qcom,smp2pgpio_sleepstate_3_out" - for sensor processor on remote pid 3 +- "qcom,smp2pgpio-sleepstate-out" - for other cases -gpios : the relevant gpio pins of the entry. Example: diff --git a/drivers/soc/qcom/smp2p_sleepstate.c b/drivers/soc/qcom/smp2p_sleepstate.c index dfebd201eeb0..04b043fbd8ec 100644 --- a/drivers/soc/qcom/smp2p_sleepstate.c +++ b/drivers/soc/qcom/smp2p_sleepstate.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -74,6 +74,7 @@ static int smp2p_sleepstate_probe(struct platform_device *pdev) static struct of_device_id msm_smp2p_slst_match_table[] = { {.compatible = "qcom,smp2pgpio_sleepstate_3_out"}, + {.compatible = "qcom,smp2pgpio-sleepstate-out"}, {}, };