Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753696Ab2KGIwm (ORCPT ); Wed, 7 Nov 2012 03:52:42 -0500 Received: from mga02.intel.com ([134.134.136.20]:5018 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751380Ab2KGIwj (ORCPT ); Wed, 7 Nov 2012 03:52:39 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,728,1344236400"; d="scan'208";a="216217977" Date: Wed, 7 Nov 2012 10:54:58 +0200 From: Mika Westerberg To: Linus Walleij , grant.likely@secretlab.ca Cc: "Rafael J. Wysocki" , Mathias Nyman , linux-kernel@vger.kernel.org, lenb@kernel.org, rafael.j.wysocki@intel.com, broonie@opensource.wolfsonmicro.com, khali@linux-fr.org, ben-linux@fluff.org, w.sang@pengutronix.de, linux-acpi@vger.kernel.org Subject: Re: [PATCH 1/3] gpio / ACPI: add ACPI support Message-ID: <20121107085458.GV24532@intel.com> References: <1351928793-14375-1-git-send-email-mika.westerberg@linux.intel.com> <4684026.MA6h34pt1X@vostro.rjw.lan> <2396674.M1Yl70Z09T@vostro.rjw.lan> <20121106093904.GM24532@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1492 Lines: 34 On Tue, Nov 06, 2012 at 11:15:21AM +0100, Linus Walleij wrote: > On Tue, Nov 6, 2012 at 10:39 AM, Mika Westerberg > wrote: > > On Mon, Nov 05, 2012 at 03:40:14PM +0100, Linus Walleij wrote: > >> > I forgot to mention that we want to hook up _existing_ drivers to those things, > >> > and they already use the global GPIO numbers, don't they? > >> > >> Yes they do, usually this is either passed from the platform using platform > >> data or handled by device tree lookups to individual drivers. > >> > >> So you will have to modify each such existing driver to do ACPI > >> probe akin to the DT codepath and call acpi_get_gpio() on every pin they > >> need going forward. But that is the plan I guess. > > > > Yes, that's the plan. > > > > Do you think it is OK to go with this implementation (acpi_get_gpio()) for > > now? We will try to make sure that the gpio_get() (or whatever it will be > > called that time) supports ACPI as well. > > Yes I'll be OK with it but I don't dare to merge it unless Grant > ACKs it. Is that an Ack from you? ;-) Since there is a dependency to linux-pm tree (we use the new dev->acpi_handle member) I would like this series merged via that tree. Grant, are you OK with this? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/