From patchwork Tue Jul 24 09:33:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 142742 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp7049487ljj; Tue, 24 Jul 2018 02:34:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe78TZz0bc3wpIy1E9unzy85sMm9yzpjifz4veAkr3lr8FsSToRSvsnGT6ZTEsyj2JaCTAo X-Received: by 2002:a62:34c4:: with SMTP id b187-v6mr16783619pfa.15.1532424856482; Tue, 24 Jul 2018 02:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532424856; cv=none; d=google.com; s=arc-20160816; b=X5BiaWMNuwXRXz6mqd88vg4NvsQN/m6UNB0xXwYEVvIHYqvs9BQ9wWVLtk3pSFtnOA +P5lw1c3M0YIJRHlanLqzeHAOUNgmOBfa86/m4kDxUmFB95KL8x9IWJr8NhziZ6xjEeJ Fte6wOsSapvrq4/qQ6LkVBEKXwZyDSfWcodYRW2p+ppyX5m7eYB7Fe7puUMVg12QWv2c u3qxXp5djx736Qw9YXJ17U+hL+Dy9Y5tFhyJ9DhBVlLnEyi3tKPrE+NfGyA1XbvOSoxo RDPNLjOGIkPc0R4bxHYsVOyIK5EZ5JfHlINoRoN+BHH9gRrq8g1pBzVXebzQzta99D6x 1+pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7bPMJkqxKe+S2AuPUe+cL7K50jyr7+HeQ5dSFHTqYhc=; b=xWauF2A+xGhFTKgI5eNjIwuac9a8AA+s872hq5bI17Dk5mVTF6K+E+VMXbX09F3pa7 OddvfSuyz/C3oec5oozkudLo0HJVug5Cf2gKa00kC8V4EfqV/VhvVEAglsh825bRmFUH oO+K4FiX+lX7vhspHCwy/qCM5nQdoftzlG3T5xV+4CqiMobwqRqrVL5tkKXYH1UzUQgp oa4iKyYeOwkuHa0W/eDJy1lZtMWmJAAk1wSHcVopAffqAhYbRjHq+BTv7AlBd0vc7rP4 Zw+v8f3Zdm9+7DuRRBTD3Um1AngV5XyqIYloEc+odv412HhxRempehdwG/PcdTuJ+1+O rnOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-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 f26-v6si11199210pgf.10.2018.07.24.02.34.16; Tue, 24 Jul 2018 02:34:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388271AbeGXKju (ORCPT + 9 others); Tue, 24 Jul 2018 06:39:50 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:35295 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388236AbeGXKju (ORCPT ); Tue, 24 Jul 2018 06:39:50 -0400 Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0LiKeS-1gI4Sh1oz6-00cepX; Tue, 24 Jul 2018 11:33:51 +0200 From: Arnd Bergmann To: Catalin Marinas , Will Deacon , "Rafael J. Wysocki" , Len Brown Cc: AKASHI Takahiro , Ard Biesheuvel , Arnd Bergmann , Mark Rutland , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH] arm64: fix ACPI dependencies Date: Tue, 24 Jul 2018 11:33:17 +0200 Message-Id: <20180724093345.1575921-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:lxUzFc7sR6yJC32kpT3pWzkuxp+Kyt5K+PKKQcF8zJ5bA6wpgPH YQOM/DtKd7TApN0sZvpeUx564o91EBzKfX2e0wv5xGp8sHOZmjWEgpa8WuWhfeDoYUoEemm iwAZwEXquUeKlmN75RjaxgrFaUzeI3dUqEsygWSWIqIX9Fnmr3jWR9r8HV1RD9k8KP1RSEQ UufECWIYrtqFs5d04ffpw== X-UI-Out-Filterresults: notjunk:1; V01:K0:EZq7+gkXU30=:lu94alJQnJCA9XUAxdZwxY 3nBvpbJ3HHNauWUjem7I2PPrkeJnMWcFK0BMewO2bgldh2EML7b6OlaStlM/HS0NepNs0v7o3 qV7nP6xkbID/S1JBMr4cereschpIW72UVeWf1xn8N/p6OL5QC3PKpf74MitoryPbifWPDg8tX X2tbnq0IMOlAAkSKD6jQT7rCf7JE/9JJRrKqJx/lAF/JJauSOabr9iCQkQycipfRwYmWlCtlm yU1+6d3N0vVbQwF7MLvbPULqXHukQaQgV6cIB/a75jqc+sTnZbSZslJA5NUZWFG6yeKKx/UvB KW63rnnawIXutkWH9iI55ODQN7KA+LAuNFKm3xFZxH5Ly5Ywhud/U4yyofLAUt4UbkqqIs3tQ EJ/s2VH7QuUhP4Al18TcVw21qW+zY3GY2CKcATbnt6ltOdhbRI/JISzxFNrwrnp70ter6tlsG ojFbd+JnPDrUZiIa9Ch47Te/DEXd+mKUsHD8P1EIz0+JptJr/9PEJTxr/49PD3uNk5MGpABBR f+zGAfrVI6+oWaLQuHiTjt7AbWCewK6wBtcZW7Es+2JRMtw1eZuu9yf/+CYjVXQH1xmsDnrzG Ho/OVdVZB9DEe/lOyLvlwPyWuw/eiZvDMXs8bOh7bT2SCHdFZ0CheZLlWLi15FDYGykQjEr6v ZS7WzyHPlk8aQI045DdeP0LVemiwQX8okul9J6CwB4ErEufcOtuOz9Wt9T1yYShmDTfw= Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Kconfig reports a warning on x86 builds after the ARM64 dependency was added. drivers/acpi/Kconfig:6:error: recursive dependency detected! drivers/acpi/Kconfig:6: symbol ACPI depends on EFI This rephrases the dependency to keep the ARM64 details out of the shared Kconfig file, so Kconfig no longer gets confused by it. Fixes: 5bcd44083a08 ("drivers: acpi: add dependency of EFI for arm64") Signed-off-by: Arnd Bergmann --- arch/arm64/Kconfig | 1 + drivers/acpi/Kconfig | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) -- 2.18.0 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index cdcaa6a798b2..2f987a938405 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1267,6 +1267,7 @@ config EFI bool "UEFI runtime support" depends on OF && !CPU_BIG_ENDIAN depends on KERNEL_MODE_NEON + select ARCH_SUPPORTS_ACPI select LIBFDT select UCS2_STRING select EFI_PARAMS_FROM_FDT diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index a8da730fabc6..0cda51c5d433 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -6,7 +6,7 @@ menuconfig ACPI bool "ACPI (Advanced Configuration and Power Interface) Support" depends on !IA64_HP_SIM - depends on IA64 || X86 || (ARM64 && EFI) + depends on IA64 || X86 || ARCH_SUPPORTS_ACPI depends on PCI select PNP default y if (IA64 || X86) @@ -41,6 +41,9 @@ menuconfig ACPI +config ARCH_SUPPORTS_ACPI + bool + if ACPI config ACPI_LEGACY_TABLES_LOOKUP