From patchwork Fri Sep 4 17:08:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 249127 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1591384ilg; Fri, 4 Sep 2020 10:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqr5Ji1anyXuRvBJy5AekkSS6nIW9PYkTNdYit5a0LaNWx4XwjcGYbe+uvLj5luYdlVRQ7 X-Received: by 2002:a05:6402:a46:: with SMTP id bt6mr9640631edb.269.1599239327280; Fri, 04 Sep 2020 10:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599239327; cv=none; d=google.com; s=arc-20160816; b=zFX4wDil3onzV+/sySrlUAbwOGqmeB3WNRdcaGxHAqSdL3bzWI0Cj1mfWi9LcvJ3hD kh8mSF7lfPLiiRZUGcJiDaPbEmlPEB7oPIfO7ANBIryylDSZgmIIf+iJESDkMg2OSA9G spl/tQRP/2JvXWvO3ywtorJAXR8fwZMMp/cMfWZAQWB0BlPd1Kv5NZiIDb/q+kOoVpTo QzJChwNsMo5TefGfM2woRk/wZ09OvRspN/dfqXMhVr5LnQAb97c/Vef5RCxb0zdQucx9 h9wInD8OqA01eC6tT0wcjzVgM71CYjftPMNBWcTgE6o1ME3DUW6/mVfS8tRPIVFnDx3q Rtdg== 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 :message-id:date:subject:cc:to:from; bh=GObaVKj2NG+AubG6TtakzZKf+higZEnG4eTbunqFCDk=; b=qmrnGRRCUHj4WWv/qL2vnB8jyPzS1rqyyhH8dM6m6oCIgUQLZNbjWL55hNCZZWI+MC wKJaVYhAmZ/tRS1/U/pRkPIAP5hgmtyjkepfwenBqPwQP8RJTSXlvXNis47diBBN0RtT HbRWQYE9uMBAVt7viX7ei5dFLBPYswPuSCi+D+VWWFncdkuG+YhV9VAPR6gl5ciHJMzq UcFbIV03TT654+ZjR9vW6IvgxvGYlNmO17K1quTqrTZ8EUvKOaxGH9m+0ozY7t7/XBSc bxx4cRG1Rw6Wy9XrONXFrD5wr/z2eYPhbD+Xva/7aqGG3jVnTre6GOpPmQ141lrU3IBR RSaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si4464149ejf.129.2020.09.04.10.08.47; Fri, 04 Sep 2020 10:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-acpi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726658AbgIDRIq (ORCPT + 7 others); Fri, 4 Sep 2020 13:08:46 -0400 Received: from foss.arm.com ([217.140.110.172]:54094 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbgIDRIp (ORCPT ); Fri, 4 Sep 2020 13:08:45 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CCB621045; Fri, 4 Sep 2020 10:08:44 -0700 (PDT) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B9D393F66F; Fri, 4 Sep 2020 10:08:44 -0700 (PDT) From: Jeremy Linton To: linux-acpi@vger.kernel.org Cc: tn@semihalf.com, bhelgaas@google.com, lorenzo.pieralisi@arm.com, steven.price@arm.com, rjw@rjwysocki.net, lenb@kernel.org, sudeep.holla@arm.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jeremy Linton Subject: [PATCH] PCI/ACPI: Suppress missing MCFG message Date: Fri, 4 Sep 2020 12:08:29 -0500 Message-Id: <20200904170829.431900-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org MCFG is an optional ACPI table. Given there are machines without PCI(e) (or it is hidden) we have been receiving queries/complaints about what this message means given its being presented as an error. Lets only print an error if something is wrong with the the given table/etc. The ACPI table list printed at boot will continue to provide a way to detect when the table is missing. Signed-off-by: Jeremy Linton --- drivers/acpi/pci_mcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.4 diff --git a/drivers/acpi/pci_mcfg.c b/drivers/acpi/pci_mcfg.c index 54b36b7ad47d..0bc8c012f157 100644 --- a/drivers/acpi/pci_mcfg.c +++ b/drivers/acpi/pci_mcfg.c @@ -279,6 +279,6 @@ static __init int pci_mcfg_parse(struct acpi_table_header *header) void __init pci_mmcfg_late_init(void) { int err = acpi_table_parse(ACPI_SIG_MCFG, pci_mcfg_parse); - if (err) + if (err && err != -ENODEV) pr_err("Failed to parse MCFG (%d)\n", err); }