Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B30BC433FE for ; Mon, 27 Dec 2021 16:48:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbhL0QsO (ORCPT ); Mon, 27 Dec 2021 11:48:14 -0500 Received: from mail-qv1-f50.google.com ([209.85.219.50]:36562 "EHLO mail-qv1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhL0Qry (ORCPT ); Mon, 27 Dec 2021 11:47:54 -0500 Received: by mail-qv1-f50.google.com with SMTP id kc16so14254323qvb.3; Mon, 27 Dec 2021 08:47:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lDE0B4GVjE0LJYoy9bVa5acyiTrwOeGwxNWWSw8Ch2k=; b=O+CrPnIRkajn6yieQcuIQBGGqiWpdQdJhYhVGHCIQ24hkqGSVVA/u8fHdnb9g0SiuV WZjokeiiB1xo6ESyUo4C4n8fGzCWDcSfROllSwagdYpFAN9VNDH/HOC2MDyGukFuM7Xo ZMrmOjXV7XfcvACnyK+ZiXmX520RKN32cSB9LsRod6N6/htPNUQwiotVZEOytZjYB4Wc mysuMxfhA5mLma5rDpWn9AYap/ztHdxrGgfvY7MCaujZOUJlFT3AdvK6AWeZNv4GatEH iZIy8bJ8vI4h3K46WFd1MS/6aP6FaviUtQoocoUWJ4b5nSFuIn3Nayw0UaTALlM0kLwE BwFw== X-Gm-Message-State: AOAM533OHXj30X+/qYyA0iQlw2Uk7D1B5GcVA7e77sHsqZ6lz9r1RIck AbeC001dbtrrOCGsaGpamN+Wbp4+K8vt9w6nEgQ= X-Google-Smtp-Source: ABdhPJzp91sTo1r6iyIdgTKl3gnZIU8G2ysznYOFt0lPn6SLPamsy1tCaZ8DFJhpq8W07Mr639WN2Jo3fcSBJq/l1lU= X-Received: by 2002:a05:6214:508f:: with SMTP id kk15mr15558614qvb.61.1640623673123; Mon, 27 Dec 2021 08:47:53 -0800 (PST) MIME-Version: 1.0 References: <20211227164317.4146918-1-schnelle@linux.ibm.com> <20211227164317.4146918-4-schnelle@linux.ibm.com> In-Reply-To: <20211227164317.4146918-4-schnelle@linux.ibm.com> From: "Rafael J. Wysocki" Date: Mon, 27 Dec 2021 17:47:42 +0100 Message-ID: Subject: Re: [RFC 03/32] ACPI: Kconfig: add HAS_IOPORT dependencies To: Niklas Schnelle Cc: Arnd Bergmann , Bjorn Helgaas , John Garry , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , "Rafael J. Wysocki" , Len Brown , Linux Kernel Mailing List , linux-arch , Linux PCI , linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org, ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 27, 2021 at 5:44 PM Niklas Schnelle wrote: > > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. As ACPI always uses I/O port access The ARM64 people may not agree with this. > we depend on HAS_IOPORT unconditionally. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle > --- > drivers/acpi/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig > index cdbdf68bd98f..b57f15817ede 100644 > --- a/drivers/acpi/Kconfig > +++ b/drivers/acpi/Kconfig > @@ -9,6 +9,7 @@ config ARCH_SUPPORTS_ACPI > menuconfig ACPI > bool "ACPI (Advanced Configuration and Power Interface) Support" > depends on ARCH_SUPPORTS_ACPI > + depends on HAS_IOPORT > select PNP > select NLS > default y if X86 > -- > 2.32.0 >