mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Toshi Kani <toshi.kani@hp.com>
Cc: bhelgaas@google.com, linux-acpi@vger.kernel.org,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI / PCI / hotplug: Avoid warning when _ADR not present
Date: Thu, 28 Nov 2013 15:15:45 +0100	[thread overview]
Message-ID: <2967007.tqmdbM4ZBo@vostro.rjw.lan> (raw)
In-Reply-To: <1385584389-22461-1-git-send-email-toshi.kani@hp.com>

On Wednesday, November 27, 2013 01:33:09 PM Toshi Kani wrote:
> acpiphp_enumerate_slots() walks ACPI namenamespace under
> a PCI host bridge with callback register_slot().
> register_slot() evaluates _ADR for all the device objects
> and emits a warning message for any error.  Some platforms
> have _HID device objects (such as HPET and IPMI), which
> trigger unnecessary warning messages.
> 
> This patch avoids emitting a warning message when a target
> device object does not have _ADR.
> 
> Signed-off-by: Toshi Kani <toshi.kani@hp.com>
> ---
> Patch is based on Linus's tree (3.13-rc1).

Queued up as a fix for 3.13, thanks!

> ---
>  drivers/pci/hotplug/acpiphp_glue.c |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c
> index 1cf605f..438a4d0 100644
> --- a/drivers/pci/hotplug/acpiphp_glue.c
> +++ b/drivers/pci/hotplug/acpiphp_glue.c
> @@ -279,7 +279,9 @@ static acpi_status register_slot(acpi_handle handle, u32 lvl, void *data,
>  
>  	status = acpi_evaluate_integer(handle, "_ADR", NULL, &adr);
>  	if (ACPI_FAILURE(status)) {
> -		acpi_handle_warn(handle, "can't evaluate _ADR (%#x)\n", status);
> +		if (status != AE_NOT_FOUND)
> +			acpi_handle_warn(handle,
> +				"can't evaluate _ADR (%#x)\n", status);
>  		return AE_OK;
>  	}
>  
> --
> 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
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

      reply	other threads:[~2013-11-28 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 20:33 Toshi Kani
2013-11-28 14:15 ` Rafael J. Wysocki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2967007.tqmdbM4ZBo@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=bhelgaas@google.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=toshi.kani@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®