From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbbKLJCa (ORCPT ); Thu, 12 Nov 2015 04:02:30 -0500 Received: from mga14.intel.com ([192.55.52.115]:6498 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753901AbbKLJC0 (ORCPT ); Thu, 12 Nov 2015 04:02:26 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,281,1444719600"; d="scan'208";a="835323574" Date: Thu, 12 Nov 2015 11:02:11 +0200 From: Mika Westerberg To: Dmitry Torokhov Cc: Linus Walleij , Alexandre Courbot , "Rafael J. Wysocki" , Johan Hovold , "Tirdea, Irina" , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups Message-ID: <20151112090211.GL1509@lahna.fi.intel.com> References: <20151111194530.GA26559@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151111194530.GA26559@dtor-ws> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 11, 2015 at 11:45:30AM -0800, Dmitry Torokhov wrote: > We should not fall back to the legacy unnamed gpio lookup style if the > driver requests gpios with different names, because we'll give out the same > gpio twice. Let's keep track of the names that were used for the device and > only do the fallback for the first name used. > > Signed-off-by: Dmitry Torokhov Acked-by: Mika Westerberg