From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga09.intel.com ([134.134.136.24]:4378 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754385AbaAUPSA (ORCPT ); Tue, 21 Jan 2014 10:18:00 -0500 Date: Tue, 21 Jan 2014 17:25:00 +0200 From: Mika Westerberg To: Alexandre Courbot Cc: Arnd Bergmann , "linux-arm-kernel@lists.infradead.org" , Linus Walleij , "devicetree@vger.kernel.org" , Heikki Krogerus , netdev , linux-wireless , linux-sunxi , linux-kernel , Maxime Ripard , Chen-Yu Tsai , Johannes Berg , "David S. Miller" , "linux-gpio@vger.kernel.org" Subject: Re: [PATCH RFC 4/6] net: rfkill: gpio: add device tree support Message-ID: <20140121152500.GN18029@intel.com> (sfid-20140121_161825_409827_1CAB8D69) References: <1389941251-32692-1-git-send-email-wens@csie.org> <201401211335.16885.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, Jan 21, 2014 at 11:53:13PM +0900, Alexandre Courbot wrote: > > I think a unified kernel API makes more sense for some subsystems than > > others, and it depends a bit on the rate of adoption of APCI for drivers > > that already have a DT binding (or vice versa, if that happens). > > > > GPIO might actually be in the first category since it's commonly used > > for off-chip components that will get shared across ARM and x86 (as > > well as everything else), while a common kernel API would be less > > important for things that are internal to an SoC where Intel is the > > only company needing ACPI support. > > I am afraid I don't have a good enough view of the ACPI landscape to > understand how often drivers might be reused on both ACPI and DT. But > I suppose nothing speaks against that, technically speaking. Maybe > Mika would have comments to make here? Well, we try to reuse existing drivers whenever possible. As an example Intel LPSS devices (that exists on Haswell and Baytrail) are mostly existing drivers from ARM world. I would say that GPIO is one of such things where we would like to have an unified interface definitely.