From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH] gpiolib-acpi: introduce acpi_get_gpio_by_index() helper Date: Thu, 4 Apr 2013 13:13:38 +0300 Message-ID: <20130404101338.GK21804@intel.com> References: <1364986614-15711-1-git-send-email-mika.westerberg@linux.intel.com> <20130404093820.GI21804@intel.com> <20130404095716.GJ21804@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga01.intel.com ([192.55.52.88]:45444 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756635Ab3DDKJ1 (ORCPT ); Thu, 4 Apr 2013 06:09:27 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Benjamin Tissoires Cc: linux-kernel@vger.kernel.org, Grant Likely , Linus Walleij , "Rafael J. Wysocki" , Mathias Nyman , linux-acpi@vger.kernel.org On Thu, Apr 04, 2013 at 12:01:23PM +0200, Benjamin Tissoires wrote: > > One option is to provide acpi_get_gpio_all() that returns all GPIOs and > > their corresponding types. That should allow clients like i2c-hid to find > > the right GPIO (I'm hoping that there will be only one GpioInt associated > > with these devices). > > That could do the trick. Great. > However, I won't be able to test it. I still don't have access to any > ACPI 5 device with i2c-hid devices... I have few such devices but none of them has GpioInt resources (they have the interrupt line routed to ioapic), so I can't test the i2c-hid with GpioInt either :-/