public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Aaron Lu <aaron.lu@intel.com>, Alex Hung <alex.hung@canonical.com>
Cc: Zhang Rui <rui.zhang@intel.com>, Len Brown <lenb@kernel.org>,
	Linux ACPI Mailing List <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH] ACPI:video: skip evaluating _DOD when it does not exist
Date: Thu, 23 Jun 2016 02:32:15 +0200	[thread overview]
Message-ID: <9660665.6YCpfJR9BD@vostro.rjw.lan> (raw)
In-Reply-To: <41d58f4f-329d-e21b-22b2-67d329adc7b8@intel.com>

On Monday, June 06, 2016 09:52:29 AM Aaron Lu wrote:
> On 06/06/2016 09:36 AM, Alex Hung wrote:
> > On Fri, Jun 3, 2016 at 2:04 PM, Aaron Lu <aaron.lu@intel.com> wrote:
> >> On Fri, May 27, 2016 at 03:47:06PM +0800, Alex Hung wrote:
> >>> Some system supports hybrid graphics and its discrete VGA
> >>> does not have any connectors and therefore has no _DOD method.
> >>>
> >>> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> >>> ---
> >>>  drivers/acpi/acpi_video.c |    3 +++
> >>>  1 file changed, 3 insertions(+)
> >>>
> >>> diff --git a/drivers/acpi/acpi_video.c b/drivers/acpi/acpi_video.c
> >>> index 5fdac39..549cdbe 100644
> >>> --- a/drivers/acpi/acpi_video.c
> >>> +++ b/drivers/acpi/acpi_video.c
> >>> @@ -1211,6 +1211,9 @@ static int acpi_video_device_enumerate(struct acpi_video_bus *video)
> >>>       union acpi_object *dod = NULL;
> >>>       union acpi_object *obj;
> >>>
> >>> +     if (!video->cap._DOD)
> >>> +             return AE_NOT_EXIST;
> >>> +
> >>>       status = acpi_evaluate_object(video->device->handle, "_DOD", NULL, &buffer);
> >>>       if (!ACPI_SUCCESS(status)) {
> >>>               ACPI_EXCEPTION((AE_INFO, status, "Evaluating _DOD"));
> >>
> >> Is the patch supposed to avoid the above error message?
> >> I'm OK with the patch though, it's just not clear to me the point since
> >> the acpi_evaluate_object should probably also return AE_NOT_EXIST.
> > 
> > Yes it is to avoid the error message.  As _DOD is checked and it is
> > known a specific video device does not have it, the error message can
> > be confusing.
> 
> I see, thanks.
> 
> Reviewed-by: Aaron Lu <aaron.lu@intel.com>

Patch applied, thanks!


      reply	other threads:[~2016-06-23  0:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-27  7:47 [PATCH] ACPI:video: skip evaluating _DOD when it does not exist Alex Hung
2016-06-03  6:04 ` Aaron Lu
2016-06-06  1:36   ` Alex Hung
2016-06-06  1:52     ` Aaron Lu
2016-06-23  0:32       ` 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=9660665.6YCpfJR9BD@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=aaron.lu@intel.com \
    --cc=alex.hung@canonical.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.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