From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH 2/2] gpio / ACPI: Use pin index and bit length Date: Tue, 23 Sep 2014 18:29:17 +0300 Message-ID: <20140923152917.GS1786@lahna.fi.intel.com> References: <715ed7865378d29b78003c710d50dba77b2cb9bb.1411439631.git.lv.zheng@intel.com> <7b41a3ca1f673c6e3d6e6b7c94c0792c7b18badf.1411439632.git.lv.zheng@intel.com> <20140923102728.GK1786@lahna.fi.intel.com> <6093416.FMcGNUEiEQ@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga11.intel.com ([192.55.52.93]:64609 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755594AbaIWPbn (ORCPT ); Tue, 23 Sep 2014 11:31:43 -0400 Content-Disposition: inline In-Reply-To: <6093416.FMcGNUEiEQ@vostro.rjw.lan> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Srinivas Pandruvada , Linus Walleij , Alexandre Courbot , Lv Zheng , "Rafael J. Wysocki" , Len Brown , Lv Zheng , linux-acpi@vger.kernel.org On Tue, Sep 23, 2014 at 05:32:02PM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 23, 2014 01:27:28 PM Mika Westerberg wrote: > > On Tue, Sep 23, 2014 at 10:35:54AM +0800, Lv Zheng wrote: > > > From: Srinivas Pandruvada > > > > > > Fix code when the operation region callback is for an gpio, which > > > is not at index 0 and for partial pins in a GPIO definition. > > > For example: > > > Name (GMOD, ResourceTemplate () > > > { > > > //3 Outputs that define the Power mode of the device > > > GpioIo (Exclusive, PullDown, , , , "\\_SB.GPI2") {10, 11, 12} > > > }) > > > } > > > > > > If opregion callback calls is for: > > > - Set pin 10, then address = 0 and bit length = 1 > > > - Set pin 11, then address = 1 and bit length = 1 > > > - Set for both pin 11 and pin 12, then address = 1, bit length = 2 > > > > > > This change requires updated ACPICA gpio operation handler code to > > > send the pin index and bit length. > > > > > > Signed-off-by: Srinivas Pandruvada > > > Acked-by: Mika Westerberg > > > > Adding the GPIO maintainers since we need their ACK to get this merged > > through ACPI tree. > > Actually, it would be good to say that the ACPICA change mentioned in the > changelog above is made by patch [1/2] in this series. > > Linus, Alexandre, please let us know if you need the whole series to be > resent for context. This is quite urgent, as we need that fixed in 3.18, > because there are systems out there where it doesn't work already. > > Mika, Srinivas, I suppose that we need this in -stable? Which one if so? The GPIO operation region support was introduced with commit 473ed7be0da04 (gpio / ACPI: Add support for ACPI GPIO operation regions): % git describe 473ed7be0da041275d57ab0bde1c21a6f23e637f v3.14-rc6-61-g473ed7be0da0 So if I understand the above correctly it is needed starting from v3.14. Please correct me if I'm wrong.