From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Zhang Rui <rui.zhang@intel.com>
Cc: ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
"Prigent, Christophe" <christophe.prigent@intel.com>
Subject: Re: [PATCH] PNPACPI: do ACPI binding directly
Date: Mon, 07 Jul 2014 22:03:24 +0200 [thread overview]
Message-ID: <1537876.HDIZBZ0Om4@vostro.rjw.lan> (raw)
In-Reply-To: <1404743246.2291.55.camel@rzhang1-toshiba>
On Monday, July 07, 2014 10:27:26 PM Zhang Rui wrote:
> On Mon, 2014-07-07 at 14:53 +0200, Rafael J. Wysocki wrote:
> > On Wednesday, July 02, 2014 08:54:49 PM Zhang Rui wrote:
> > > From 7daac7fc7cd7b605ccd84f10fc206cedf6170e89 Mon Sep 17 00:00:00 2001
> > > From: Zhang Rui <rui.zhang@intel.com>
> > > Date: Fri, 20 Jun 2014 10:14:07 +0800
> > > Subject: [PATCH] PNPACPI: do ACPI binding directly
> > >
> > > PNPACPI uses acpi_bus_type to do ACPI binding for the PNPACPI devices.
> > >
> > > This is overkill because PNPACPI code already knows which ACPI
> > > device object to bind during PNPACPI device enumeration.
> > >
> > > This patch removes acpi_pnp_bus and does the binding by invoking
> > > acpi_bind_one() directly after device enumerated.
> > >
> > > This also fixes a bug in the previous code that some PNPACPI devices failed
> > > to be bound because
> > > 1. the ACPI device _HID is not pnpid, e.g. "MSFT0001", but its _CID is,
> > > e.g. "PNP0303", thus ACPI _CID is used as the pnp device device id.
> > > 2. device is bound only if the pnp device id matches the ACPI device _HID.
> > >
> > > Tested-by: Prigent Christophe <christophe.prigent@intel.com>
> > > Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> >
> > Does this fix a regression?
>
> Hmmm, no, the problem exists in all previous kernel versions IMO.
OK, so it is applicable to -stable too? Or would it need to be backported?
> > If so, do we need it in 3.16?
> >
> Not necessarily, but as this is a bug fix, so I think it is reasonable
> to be shipped in 3.16, right?
Basically, yes.
Rafael
next prev parent reply other threads:[~2014-07-07 19:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 12:54 [PATCH] PNPACPI: do ACPI binding directly Zhang Rui
2014-07-07 12:53 ` Rafael J. Wysocki
2014-07-07 14:27 ` Zhang Rui
2014-07-07 20:03 ` Rafael J. Wysocki [this message]
2014-07-08 1:17 ` Zhang Rui
2014-07-08 13:34 ` Rafael J. Wysocki
2014-08-07 8:29 ` Yidi Lin
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=1537876.HDIZBZ0Om4@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=christophe.prigent@intel.com \
--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