From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756758AbbI1Haw (ORCPT ); Mon, 28 Sep 2015 03:30:52 -0400 Received: from mga09.intel.com ([134.134.136.24]:29035 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754371AbbI1Hav (ORCPT ); Mon, 28 Sep 2015 03:30:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,602,1437462000"; d="scan'208";a="814306631" Date: Mon, 28 Sep 2015 10:30:46 +0300 From: Mika Westerberg To: Olliver Schinagl Cc: Linus Walleij , Grant Likely , "Rafael J. Wysocki" , Alexandre Courbot , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: gpios search behaviour for gpio from _DSD Message-ID: <20150928073046.GS1536@lahna.fi.intel.com> References: <5603A552.9020005@schinagl.nl> <20150924084324.GK1536@lahna.fi.intel.com> <5606F273.6030100@schinagl.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5606F273.6030100@schinagl.nl> 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 Sat, Sep 26, 2015 at 09:30:59PM +0200, Olliver Schinagl wrote: > What i ment is, without strcmp, the loop would test for: > > reset-gpio and then reset-gpios (and then gpio and gpios) > > So why the strcmp at all, Why only reset-gpios? Will the _DSD or acpi break > and if we probe for reset-gpio (first, instead of reset-gpios)? I'm asking > because i'm trying some work on gpio lib and this section is getting > reworked too. While doing that I want to remove the strcmp. Hence, the > question if things break on the ACPI side (I'm mostly failiar with OF. I think it is there because we really want to force "-gpios" format for named gpios (not "-gpio"). DT does not do it because they have lots of existing "-gpio" users whereas in ACPI there is no such burden.