Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611634
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups |
| Date | Wed, 29 Mar 2017 09:10:02 +0200 |
| Message-ID | <tqfTY-3sX-13@gated-at.bofh.it> (permalink) |
| References | <togU9-6WV-3@gated-at.bofh.it> <togUa-6WV-17@gated-at.bofh.it> <tohnc-7os-9@gated-at.bofh.it> <tq2k1-1UQ-13@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=vro3wikbNqirchF4iJoh1KarY+J+Xz3USDUytF0Gj5A=; b=YFtArh39cyr4xxGAZp6YXRH68UCXaTAjYRNDfK+oK7CsqHjREyv9YU4QxaZDyNXCC9 2/nt7XHSjTS3PR7hQ8qp7l4Y/cKekoLkf0IPwJowU0cre7NwoSDaaA44UAaq9FPjNOyc PkJ1IEtAkfJMk2tK3TOmG9jVeyydiJvsDLyNTDP895B2q9PnmlXkJux/dr9Ek7eCWmy6 J+0oG6j65t9vIK+HawRpdiEpMNb/IKsZnakMXxxdWKrExXS8APMHHovzp9KtplvZu/z7 1WEwySGMsP6XNm2pHKv3TjKt/WMGg7B5maoagGzSZbqJfLd+AJo1jWjPlrUkT21MlOXI iMSA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=vro3wikbNqirchF4iJoh1KarY+J+Xz3USDUytF0Gj5A=; b=nzNXiMKqInpLs4ms5ELXUWVdvVSIP5mQcYIOATapuXDApAZEiV9I+wUHXPitumKiV/ k/HlJwgfrDtZNowphNyEWdfO59AIQmnn/W3r2htCLqq2Z6YS8OBf2xhZgzasIvY0wkvf 46gNgcI2FkirtDhFFpz1NFZzPxtg+mt5NR7ajmnprFew2J7PSR7F5d+UbxJKxrXHuCHB CagbwzblsD2Re8mLHXe6otFAoBPZ/V9Sh3LVL2z9YRxynP62KU7EcacY49EbK5mGybl1 qZ8F+CxTfvI09vo6Gzpq8UC2VMoI+7p7ux0648xu/yf2myTD9yVxU44ZFHazhGZP7hUy 3vLw== |
| X-Gm-Message-State | AFeK/H1vuaIQ4xKG9hM2NG10BlTcpbaU5TeuwCtoSpKvN2VoU5k/BxvmOOi4/AvDCQiapA== |
| X-Received | by 10.99.217.17 with SMTP id r17mr34936688pgg.140.1490771090285; Wed, 29 Mar 2017 00:04:50 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Disposition | inline |
| Content-Transfer-Encoding | 8bit |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 70 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Linus Walleij <linus.walleij@linaro.org>, Alexandre Courbot <gnurou@gmail.com>, linux-gpio@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>, linux-kernel@vger.kernel.org, Mika Westerberg <mika.westerberg@linux.intel.com>, Jarkko Nikula <jarkko.nikula@linux.intel.com>, linux-acpi@vger.kernel.org, Irina Tirdea <irina.tirdea@intel.com>, Bastien Nocera <hadess@hadess.net> |
| X-Original-Date | Wed, 29 Mar 2017 00:04:47 -0700 |
| X-Original-Message-ID | <20170329070447.GA38261@dtor-ws> |
| X-Original-References | <20170323194618.26548-1-andriy.shevchenko@linux.intel.com> <20170323194618.26548-5-andriy.shevchenko@linux.intel.com> <20170323201241.GB2502@dtor-ws> <1490718684.708.37.camel@linux.intel.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1611634 |
Show key headers only | View raw
On Tue, Mar 28, 2017 at 07:31:24PM +0300, Andy Shevchenko wrote:
> On Thu, 2017-03-23 at 13:12 -0700, Dmitry Torokhov wrote:
> > On Thu, Mar 23, 2017 at 09:46:14PM +0200, Andy Shevchenko wrote:
> > > The commit 10cf4899f8af ("gpiolib: tighten up ACPI legacy gpio
> > > lookups")
> > > prevents to getting same resource twice if the driver asks twice
> > > using same
> >
> > s/same/different/
> >
> > > connection ID.
>
> Oh, yeah, though it didn't fix a potential issue described below.
>
> > > But the whole idea of fallback might bring some problems. Imagine
> > > the case when
> > > we have two versions of BIOS/hardware where in one _DSD is
> > > introduced along
> > > with GPIO resources, but the other one uses just plain GPIO resource
> > > for
> > > another purpose
> > >
> > > Case 1:
> > >
> > > Device (DEVX)
> > > {
> > > ...
> > > Name (_CRS, ResourceTemplate ()
> > > {
> > > GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionInputOnly,
> > > "\\_SB.GPO0", 0, ResourceConsumer) {15}
> > > })
> > > Name (_DSD, Package ()
> > > {
> > > ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
> > > Package ()
> > > {
> > > Package () {"some-gpios", Package() {^DEVX, 0, 0, 0
> > > }},
> > > }
> > > })
> > > }
> > >
> > > Case 2:
> > >
> > > Device (DEVX)
> > > {
> > > ...
> > > Name (_CRS, ResourceTemplate ()
> > > {
> > > GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionInputOnly,
> > > "\\_SB.GPO0", 0, ResourceConsumer) {27}
> > > })
> > > }
> > >
> > > To prevent the possible misconfiguration tighten up even more ACPI
> > > GPIO lookups
> > > for case without connection ID provided.
>
> > I wonder if this will break Goodix. Irina, Bastien?
>
> It would be helpful if anyone can test it.
>
> Btw, which particular driver do you have in mind that might be broken
> after such change? Ah, Goodix is a vendor of touchscreens, right?
Yes, and it uses named GPIOs.
--
Dmitry
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-28 18:40 +0200 Re: [PATCH v1 4/8] gpio: acpi: Even more tighten up ACPI GPIO lookups Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-03-29 09:10 +0200
csiph-web