All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: "Mika Penttilä" <mika.penttila@kolumbus.fi>
Cc: linux-acpi@vger.kernel.org, len.brown@intel.com, shaohua.li@intel.com
Subject: Re: [12/12] acpi: set fake hid
Date: Mon, 25 Sep 2006 17:58:22 +0800	[thread overview]
Message-ID: <1159178302.5351.27.camel@localhost.localdomain> (raw)
In-Reply-To: <4517A40A.9090106@kolumbus.fi>

On Mon, 2006-09-25 at 12:40 +0300, Mika Penttilä wrote:
> Zhang Rui wrote:
> > On Fri, 2006-09-22 at 14:59 +0300, Mika Penttilä wrote: 
> >   
> >> +static int acpi_pci_bridge_match(struct acpi_device *device)
> >> +{
> >> +       acpi_status status;
> >> +       acpi_handle handle;
> >> +
> >> +       /* pci bridge has _PRT but isn't PNP0A03 */
> >> +       status = acpi_get_handle(device->handle, METHOD_NAME__PRT, &handle);
> >> +       if (ACPI_FAILURE(status))
> >> +               return -ENODEV;
> >> +       if (!acpi_match_ids(device, "PNP0A03"))
> >> +               return -ENODEV;
acpi_pci_bridge_match will return 0, if we found a
pci-pci bridge. Because it has a PRT table and its
HID is _NOT_ "PNP0A03".
> >> +       return 0;
> >> +}
> >> +
> >>
> >>
> >> You seem to handle pci-pci bridge here incorrectly (returns -ENODEV from match to PNP0A03)
> >>
> >>     
> > Is there any pci-pci bridge that has a _HID of "PNP0A03"?
> >
> > thanks,
> > --Rui
> >
> >   
> Don't know, but isn't the purpose here for acpi_pci_bridge_match() to 
> match pci-pci bridges also? They won't just because they aren't PNP0A03.
> 
> --Mika
According to the ACPI spec, only ACPI PCI Root Bridge has a _HID of
"PNP0A03".


-
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

      reply	other threads:[~2006-09-25  9:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-22  9:54 [12/12] acpi: set fake hid Zhang Rui
2006-09-22 11:59 ` Mika Penttilä
2006-09-25  9:31   ` Zhang Rui
2006-09-25  9:40     ` Mika Penttilä
2006-09-25  9:58       ` Zhang Rui [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=1159178302.5351.27.camel@localhost.localdomain \
    --to=rui.zhang@intel.com \
    --cc=len.brown@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mika.penttila@kolumbus.fi \
    --cc=shaohua.li@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.