Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp512747yba; Mon, 1 Apr 2019 10:47:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwROgwhGIQnkaw7P8mS575Uq2c4Oo8DQ+CquKG+uVKiEJo+lccEneESoRBaJR91/DQMzUQb X-Received: by 2002:a63:6949:: with SMTP id e70mr61572144pgc.89.1554140863861; Mon, 01 Apr 2019 10:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554140863; cv=none; d=google.com; s=arc-20160816; b=WU1JrKWp4RIb+aSbYvBYdvMWQNLQCfx64G6ikCGCeL6liCdvI5i9zuBmEb0jxnMdPC D/hC0vYrHWTzyv2PRvPITy4ULDw1lYP4T4LGoZ2zx0b4VPHAMebAldd4VK4jGRpVYnjl h9hNdsx3NcY8ijX7dtYdoJMFOJB5cz/U3VaEdiZEP+mAQr4KhrLDZIJoGtZA/JtBAgww Zmy6k+Hu2/8iIAODzRClWkxVNV/J5GKBWTtzurGN9EJHWo4oqzl2YkAKKxwkha9rqP5n ypW3pVDE2MPApExmboibw3jRvylSUjhqdHWz+SZ8KgZiadR2XFVd2aCU8e7N6ffRE2u3 DhqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zDJ+kV/onphVEhMFYt1yvNrZyZ/bkCJzfd7JxA/CPjQ=; b=ZC1tFZGlaK3oRaiUhGYyUC5CGvGksYTbsroW8pdPkNVf+x8ZwYB/dg475tUyV/YyHQ IhkPek6y/ijfvg2REcf8e+2VCDmPPiGe/5laLWlgc1LdT8y3hQOgOnj5G88CH8cbH2qi NnN9pPahWOathWd8EpojdzD5BmdXa/YkdOlr1D6YO6zmhjYa8fFpWyqNsJ6PILMm79DJ c3OhOaQz1/iGJgoXL+R+RjybkaV1624c+YAzCqb6T035aWcxEwOT1ueIqsNfZCbLDef+ YJM2coAyi3LW3UUjY+Xlu9jm0q3v2MtIMvNzRSbH77TYf/GnqMHtt6l+3rEHInaWE9fi J4Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Q46uhZr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si9328336plg.364.2019.04.01.10.47.28; Mon, 01 Apr 2019 10:47:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2Q46uhZr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387601AbfDARdP (ORCPT + 99 others); Mon, 1 Apr 2019 13:33:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:41918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387410AbfDARdO (ORCPT ); Mon, 1 Apr 2019 13:33:14 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96CD82070B; Mon, 1 Apr 2019 17:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554139993; bh=nQ/bgaX1FMWhaK0Oh9lXZyCW5bIFukFSMFRGdBLk9w4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2Q46uhZroslZgzsmLZwmhZj6/kg6lWGxTRtUynwUQIynMhvRRFmFHLgMlQXseT2Ua EB1vgpv9r0W/KrT4+tX2cJtboYaMzmNQiV0xOZch9TM+rLd0qgh2ec1O/6UyKTNk+O DqW8L8qdBLTlpfiZiL0ggHZys9imOCdroNKa96bg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lorenzo Pieralisi , Nicolas Pitre , Russell King , Sasha Levin Subject: [PATCH 4.4 073/131] ARM: 8510/1: rework ARM_CPU_SUSPEND dependencies Date: Mon, 1 Apr 2019 19:02:23 +0200 Message-Id: <20190401170058.235729540@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401170051.645954551@linuxfoundation.org> References: <20190401170051.645954551@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 1b9bdf5c1661873a10e193b8cbb803a87fe5c4a1 ] The code enabled by the ARM_CPU_SUSPEND config option is used by kernel subsystems for purposes that go beyond system suspend so its config entry should be augmented to take more default options into account and avoid forcing its selection to prevent dependencies override. To achieve this goal, this patch reworks the ARM_CPU_SUSPEND config entry and updates its default config value (by adding the BL_SWITCHER option to it) and its dependencies (ARCH_SUSPEND_POSSIBLE), so that the symbol is still selected by default by the subsystems requiring it and at the same time enforcing the dependencies correctly. Signed-off-by: Lorenzo Pieralisi Cc: Nicolas Pitre Signed-off-by: Russell King Signed-off-by: Sasha Levin --- arch/arm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4cc908ee107f..737c8b0dda84 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1423,7 +1423,6 @@ config BIG_LITTLE config BL_SWITCHER bool "big.LITTLE switcher support" depends on BIG_LITTLE && MCPM && HOTPLUG_CPU && ARM_GIC - select ARM_CPU_SUSPEND select CPU_PM help The big.LITTLE "switcher" provides the core functionality to @@ -2141,7 +2140,8 @@ config ARCH_SUSPEND_POSSIBLE def_bool y config ARM_CPU_SUSPEND - def_bool PM_SLEEP + def_bool PM_SLEEP || BL_SWITCHER + depends on ARCH_SUSPEND_POSSIBLE config ARCH_HIBERNATION_POSSIBLE bool -- 2.19.1