From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v1 3/3] gpiolib: append SFI helpers for GPIO API Date: Tue, 10 Dec 2013 17:31:25 +0200 Message-ID: <1386689485.1871.171.camel@smile> References: <1386261409-13850-1-git-send-email-andriy.shevchenko@linux.intel.com> <1386261409-13850-4-git-send-email-andriy.shevchenko@linux.intel.com> <52A12DCB.10306@nvidia.com> <1386583880.1871.119.camel@smile> <52A683BA.9090400@nvidia.com> <1386681309.1871.164.camel@smile> <52A7318F.6040901@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com ([143.182.124.37]:34010 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513Ab3LJPb4 (ORCPT ); Tue, 10 Dec 2013 10:31:56 -0500 In-Reply-To: <52A7318F.6040901@linux.intel.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: David Cohen Cc: Alex Courbot , "linux-gpio@vger.kernel.org" , Linus Walleij , Mika Westerberg , Sathyanarayanan Kuppuswamy , Len Brown On Tue, 2013-12-10 at 07:21 -0800, David Cohen wrote: > Hi, > > [snip] > > >> I don't know anything about SFI GPIOs, how they are defined, where their > >> name comes from, and how they are used so my vision may be incomplete. > >> But AFAICT it all comes down to one of these two scenarios: > >> > >> 1) SFI GPIOs are only used in platform code -> using their pin name is > >> ok, device argument should be assumed to be NULL for their matching > > Let's stick to this. > > > >> 2) SFI GPIOs are also consumed by device drivers -> you need a way to > >> match a (device, con_id) pair to your SFI GPIOs so they can be matched > >> exactly and through the names drivers will request. > > Mostly unlikely we go this way. It would mean we don't need SFI at all. > > I'm currently upstreaming Intel-MID's SFI users. This is a forbidden > situation which I'd change before submit the patch. I'm sorry I didn't get this. You mean we have to have another mapping, or you agree with system-global GPIOs in SFI case? > > Br, David Cohen -- Andy Shevchenko Intel Finland Oy