From patchwork Mon Dec 7 03:45:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 7779931 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 26328BEEE1 for ; Mon, 7 Dec 2015 03:46:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 299D92054C for ; Mon, 7 Dec 2015 03:46:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43E232054E for ; Mon, 7 Dec 2015 03:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755395AbbLGDp6 (ORCPT ); Sun, 6 Dec 2015 22:45:58 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:56213 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755244AbbLGDp4 (ORCPT ); Sun, 6 Dec 2015 22:45:56 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NYY00512YGIB610@mailout4.w1.samsung.com>; Mon, 07 Dec 2015 03:45:54 +0000 (GMT) X-AuditID: cbfec7f4-f79026d00000418a-0f-566500f17bac Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id A3.1D.16778.1F005665; Mon, 7 Dec 2015 03:45:53 +0000 (GMT) Received: from localhost.localdomain ([10.113.15.26]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NYY0034QYG9N040@eusync1.samsung.com>; Mon, 07 Dec 2015 03:45:53 +0000 (GMT) From: Krzysztof Kozlowski To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: p.fedin@samsung.com, linux-samsung-soc@vger.kernel.org, arnd@arndb.de, olof@lixom.net, Krzysztof Kozlowski Subject: [PATCH v2] power: Fix unmet dependency on POWER_SUPPLY by POWER_RESET by uncoupling them Date: Mon, 07 Dec 2015 12:45:12 +0900 Message-id: <1449459912-29482-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDLMWRmVeSWpSXmKPExsVy+t/xy7ofGVLDDKYstbD4O+kYu8WkJ++Z LSaunMxs0bx4PZvF6xeGFpd3zWGz+Nx7hNFixvl9TBanrn9ms3h1aRWbxendJQ7cHr9/TWL0 2DnrLrvH5hVaHptWdbJ57J+7ht3jyokmVo++LasYPT5vkgvgiOKySUnNySxLLdK3S+DK+LDO t+CAUMWcJUoNjHv5uxg5OSQETCQ+TZ3KCmGLSVy4t56ti5GLQ0hgKaPEmYf/WSCc/4wSN4/9 ZgSpYhMwlti8fAlYlYjAO0aJU1ePMoE4zAJdjBLvZkwDqxIWSJboPLWcCcRmEVCV+LZsNZjN K+Auce34chaIfXISJ49NZp3AyL2AkWEVo2hqaXJBcVJ6rqFecWJucWleul5yfu4mRkiYfdnB uPiY1SFGAQ5GJR5ei/SUMCHWxLLiytxDjBIczEoivMJxQCHelMTKqtSi/Pii0pzU4kOM0hws SuK8c3e9DxESSE8sSc1OTS1ILYLJMnFwSjUwOvhqHhPINuK/KikULdi3eem5J8suBe5VbymS Z9X4tuG48mMVmWzxP9veCDvWnGZyPVb9Rr0/Lpsvo+Hcrm2Gyct+rivsOvb03omOXYecZDem KnCpnjz14cbkFSub8yd53/ooOOVO2OfGvCqjux8mM+V+mzffauLeozVvtj1+++7vvcffJskv X6bEUpyRaKjFXFScCABfPldyLwIAAA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the reset/power off handlers (POWER_RESET) and Adaptive Voltage Scaling class (POWER_AVS) are not built when POWER_SUPPLY is disabled. The POWER_RESET is also not visible in drivers main section of config. However they do not really depend on power supply so they can be built always. The objects for power supply drivers already depend on particular Kconfig symbols so there is no need for any changes in drivers/power/Makefile. This allows selecting POWER_RESET from main drivers config section and fixes following build warning (encountered on ARM exynos defconfig when POWER_SUPPLY is disabled manually): warning: (ARCH_HISI && ARCH_INTEGRATOR && ARCH_EXYNOS && ARCH_VEXPRESS && REALVIEW_DT) selects POWER_RESET which has unmet direct dependencies (POWER_SUPPLY) warning: (ARCH_EXYNOS) selects POWER_RESET_SYSCON which has unmet direct dependencies (POWER_SUPPLY && POWER_RESET && OF) warning: (ARCH_EXYNOS) selects POWER_RESET_SYSCON_POWEROFF which has unmet direct dependencies (POWER_SUPPLY && POWER_RESET && OF) Reported-by: Pavel Fedin Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Follow Sebastian's suggestion of changing drivers/power to obj-y. This makes patch 2/2 obsolete and everything (POWER_RESET + POWER_AVS) is fixed here. --- drivers/Makefile | 2 +- drivers/power/Kconfig | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 795d0ca714bf..8f5d076baeb0 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -106,7 +106,7 @@ obj-y += i2c/ media/ obj-$(CONFIG_PPS) += pps/ obj-$(CONFIG_PTP_1588_CLOCK) += ptp/ obj-$(CONFIG_W1) += w1/ -obj-$(CONFIG_POWER_SUPPLY) += power/ +obj-y += power/ obj-$(CONFIG_HWMON) += hwmon/ obj-$(CONFIG_THERMAL) += thermal/ obj-$(CONFIG_WATCHDOG) += watchdog/ diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 2f944d742ed4..c031f901b497 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -509,8 +509,7 @@ config AXP20X_POWER This driver provides support for the power supply features of AXP20x PMIC. -source "drivers/power/reset/Kconfig" - endif # POWER_SUPPLY +source "drivers/power/reset/Kconfig" source "drivers/power/avs/Kconfig"