From patchwork Wed Apr 21 13:57:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 425293 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp352385jao; Wed, 21 Apr 2021 06:57:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcocA0kwhm3AJgFAeHZRnKCbAsNrpMC0Pu7RUjPxMALwDIwwcvsaF/I1rEWvTlKltcHYwR X-Received: by 2002:aa7:d3da:: with SMTP id o26mr39063090edr.147.1619013452824; Wed, 21 Apr 2021 06:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619013452; cv=none; d=google.com; s=arc-20160816; b=SUtn0rHREua6Saoyijadalt0W50LSa4HUQeJ5va5+lG5cFSJpb0+OVBSAyYoWQCo/M 7VnOq8z4VXU+BSPBQNbDpU/JKWQrOLM+QRtZUeBEWdbugffEk+Kz2hM/MM6Mjy7qrhFT 7IoDS458TmnWv9W6jqYRMvMmRGVqpmoaXuWkJmJQyfLN28N3npXkiX54Y+0Le4mB0gtq 58wW8954Wdx5ZlTyLxmtdkfciprKYjtjDnFsB/1y77ac450xrNNIDiX87OWltT+cptj6 PDbbK5YEeZljuzqTGbarkDxpT3ti4/isJqLXpIKql15ZGyMsKDuUCrOibMgiTEBf2xno bCPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Bw2mbH+HI/jFLPkT0BiwR0zV6lVQ2UsIsiur6p48g48=; b=Pu1Kp4Xy2Mik3wUN3sYNECunj4XjX7SvSuup3pXqkJ00Zf1cp+ikl0J5NgWZz1Fbun 9Dq1ZMzsvxixCaSWx9mDwyRQRjkG7LKqS7217nofLozaUTotrIquDqcWboGY8kU9K+/A VWgeFN5L4jQwzbF5tgnPVnhIfAfJBtHiSFCZozdC2u4F0CgDeaqkwyxlLB/gHBpI7Q7L jolfQ5QBgQi0VehlFO6fwglKjOVpCRe/juzef2EuOZAwXfwYKVjNhu4BprszOZhRCc47 ffxP3MrKQUq974XwgyJY+PoBWV4f0+m4/F+irKtT5/raxRAxwfataj0Xx6z/Y8pEfvjG WyPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YLBt8aAF; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si2093370edc.137.2021.04.21.06.57.32; Wed, 21 Apr 2021 06:57:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YLBt8aAF; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239318AbhDUN6D (ORCPT + 7 others); Wed, 21 Apr 2021 09:58:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242313AbhDUN6D (ORCPT ); Wed, 21 Apr 2021 09:58:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E17D61445; Wed, 21 Apr 2021 13:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619013450; bh=xnD3YJ0KiYDjoH+p5AyJhLNba8qMmfteiSz9TACtVIU=; h=From:To:Cc:Subject:Date:From; b=YLBt8aAF7m3MrFrtRGu9+0ydGNwfrcSNoKbWvhXXxURyqmG52v/eT8K1wUnuxrWNg khtBSwaln7ZNI2JJ88HpAD5Om1InqrWBXIhKM6y/cXGK/ZP+zVNG+rIbLukUSszt9v 1ZJ2/gIwDEea0u0zQ9QF3np/oa//ZNzD8horCTboOV/m/lsQlM/zoZ3fkKUwN7O3QV 7pTOFykOtvLJvu4XkdP45/Oud/cVj2bpNaatEF2tXjCRctVEGJZ0997+Rv2bH1pQVg NZCi3byvl8aqDKHADt1OKYDDFt8cJc6QWPa52JudKN9pW07GZwLqbvE/A4f4ZCZFkQ f0YW85kW/qWkA== From: Arnd Bergmann To: "Rafael J. Wysocki" , Daniel Lezcano , He Ying Cc: Arnd Bergmann , Ulf Hansson , Lina Iyer , Sudeep Holla , Stephan Gerhold , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpuidle: qcom_scm: fix Kconfig dependencies again Date: Wed, 21 Apr 2021 15:57:13 +0200 Message-Id: <20210421135723.3601743-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Arnd Bergmann The previous compile time fix was incomplete and still results in warnings like: WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n] Selected by [y]: - ARM_QCOM_SPM_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_QCOM [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] WARNING: unmet direct dependencies detected for QCOM_SCM Depends on [n]: (ARM [=y] || ARM64) && HAVE_ARM_SMCCC [=n] Selected by [y]: - ARM_QCOM_SPM_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_QCOM [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y] Use a dependency on ARCH_SUSPEND_POSSIBLE as a prerequisite for selecting ARM_CPU_SUSPEND, and a dependency on HAVE_ARM_SMCCC for QCOM_SCM. Fixes: 498ba2a8a275 ("cpuidle: Fix ARM_QCOM_SPM_CPUIDLE configuration") Signed-off-by: Arnd Bergmann --- drivers/cpuidle/Kconfig.arm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.29.2 Reviewed-by: Ulf Hansson Acked-by: Randy Dunlap Tested-by: Randy Dunlap diff --git a/drivers/cpuidle/Kconfig.arm b/drivers/cpuidle/Kconfig.arm index 334f83e56120..fc596494251c 100644 --- a/drivers/cpuidle/Kconfig.arm +++ b/drivers/cpuidle/Kconfig.arm @@ -107,7 +107,8 @@ config ARM_TEGRA_CPUIDLE config ARM_QCOM_SPM_CPUIDLE bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)" - depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU + depends on ARCH_QCOM || (ARCH_SUSPEND_POSSIBLE && COMPILE_TEST) + depends on ARM && HAVE_ARM_SMCCC select ARM_CPU_SUSPEND select CPU_IDLE_MULTIPLE_DRIVERS select DT_IDLE_STATES