From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: "Zhang, Rui" <rui.zhang@intel.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
linux-acpi <linux-acpi@intel.com>,
"stace75@gmail.com" <stace75@gmail.com>
Subject: Re: [PATCH] gpiolib-acpi: add _DEP support for Acer One 10
Date: Tue, 14 Jun 2016 13:01:39 +0300 [thread overview]
Message-ID: <20160614100139.GI1740@lahna.fi.intel.com> (raw)
In-Reply-To: <CACRpkdbheZ55Hc5egwrbQOBQaDjkq+_-N3Hm0+b=Vqmau5=a1w@mail.gmail.com>
On Tue, Jun 14, 2016 at 09:33:30AM +0200, Linus Walleij wrote:
> Mika, Rafael: this came from Intel, can you review it? Should it be applied?
Looks reasonable so unless Rafael objects you can add my,
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> Yours,
> Linus Walleij
>
> On Mon, May 16, 2016 at 5:18 AM, Zhang, Rui <rui.zhang@intel.com> wrote:
>
> > From 8590bdcacc94a1ab260b4ea2e6e747b0bc1d9bf8 Mon Sep 17 00:00:00 2001
> > From: Zhang Rui <rui.zhang@intel.com>
> > Date: Wed, 11 May 2016 09:02:28 +0800
> > Subject: [PATCH] gpiolib-acpi: add _DEP support for Acer One 10
> >
> > On Acer One 10, the ACPI battery driver can not be probed because
> > it depends on the GPIO controller as well as the I2C controller to work,
> > Device (BATC)
> > {
> > Name (_HID, EisaId ("PNP0C0A") /* Control Method Battery */)
> > ...
> > Name (_DEP, Package (0x03) // _DEP: Dependencies
> > {
> > I2C1,
> > GPO2,
> > GPO0
> > })
> > ...
> > }
> >
> > The I2C dependency also exists on other platforms and has been fixed by commit
> > 40e7fcb19293 ("ACPI: Add _DEP support to fix battery issue on Asus T100TA"),
> > this patch resolves the GPIO dependency for Acer One 10.
> >
> > Link:https://bugzilla.kernel.org/show_bug.cgi?id=115191
> > CC: Mika Westerberg <mika.westerberg@linux.intel.com>
> > CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> > Tested-by: Stace A. Zacharov <stace75@gmail.com>
> > Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> > ---
> > drivers/gpio/gpiolib-acpi.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
> > index 682070d..4b809b0 100644
> > --- a/drivers/gpio/gpiolib-acpi.c
> > +++ b/drivers/gpio/gpiolib-acpi.c
> > @@ -836,6 +836,7 @@ void acpi_gpiochip_add(struct gpio_chip *chip)
> > }
> >
> > acpi_gpiochip_request_regions(acpi_gpio);
> > + acpi_walk_dep_device_list(handle);
> > }
> >
> > void acpi_gpiochip_remove(struct gpio_chip *chip)
> > --
> > 1.9.1
> >
> >
next prev parent reply other threads:[~2016-06-14 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-16 3:18 [PATCH] gpiolib-acpi: add _DEP support for Acer One 10 Zhang, Rui
2016-06-14 7:33 ` Linus Walleij
2016-06-14 10:01 ` Mika Westerberg [this message]
2016-06-14 21:38 ` Rafael J. Wysocki
2016-06-15 6:49 ` Linus Walleij
2016-06-16 1:51 ` Zhang Rui
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=20160614100139.GI1740@lahna.fi.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=linus.walleij@linaro.org \
--cc=linux-acpi@intel.com \
--cc=linux-gpio@vger.kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=rui.zhang@intel.com \
--cc=stace75@gmail.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;
as well as URLs for NNTP newsgroup(s).