Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3628269ybd; Tue, 25 Jun 2019 06:00:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWzas1BPzgfgoHbv/YVvMAjxNFA37yvJCNgTZcEcClBFivSgHbJTCzAig4cC6BRiNFbs5f X-Received: by 2002:a17:90a:db42:: with SMTP id u2mr32076563pjx.48.1561467650224; Tue, 25 Jun 2019 06:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561467650; cv=none; d=google.com; s=arc-20160816; b=a6vz2XsT1KimqMkhPe54D3gp8whRxGbhT6YtsusOxblkFd1zMRBBqVemiCkdUFP3cZ 7SCEitfOqdXNq2Nvi8RTPLlAtm8ywrFlVtOPQM0mEE01Kj8ewTVgYTTq/UCG8euBkhTM 1l+Co2659x8iDrPeC9b0/nV8++VOL9i+DyaZwSn3KQhLz81+Jfq7ZnyCsi2CgKgCC2W8 3xoNOCTFwIkx47Tpgi1i75lU9wh2fFA9UpXIaTLM3JTDQCM5gx337AAE2+6FUFB8nOKe y3kC1o3a+EcxIomQMUC+smnOB/RGGl7a8/0AJm0buhp7UxKZw5ZzIm4wqFKdwSeVxLlH p2xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=WTQPvXuX+e04EMxQ23GEbPoocfiawg3diU31+TcLy9k=; b=kJe0ezG4D9UvH9lpX/uPIayjk9fQ+0HFA1wyWCyGFof9I0NU0kZhEP8OMcdoSTxUjP UzmwFNeCZ1q6PbJScLRl1BbyydBtaqSpBtjn0wYwQHH32M5VNs+NlNpLIC//yRFNGMqW zJ+Sm9xqnkfFUBto6u1qeWyMtTmTtzSvuK+fZGicHQNGtobQD0JlPWh3M9URTXJ5aFe/ QkNR7yKE99gWskd2lPQ+fCbO9alYxcx2zRbwKeE0DZ3Fa7fE5PHcWcH5BqCuPWxRFuL8 j4+w9CarU1YRHicIO6TpUcVqLTasJxxY7ERJxfqJQ9s/g51SG+Z6BhMt13nNc8J25tO2 W+9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si13313438pga.501.2019.06.25.06.00.33; Tue, 25 Jun 2019 06:00:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730581AbfFYLTz (ORCPT + 99 others); Tue, 25 Jun 2019 07:19:55 -0400 Received: from mga14.intel.com ([192.55.52.115]:20382 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbfFYLTx (ORCPT ); Tue, 25 Jun 2019 07:19:53 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2019 04:19:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,415,1557212400"; d="scan'208";a="155480989" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga008.jf.intel.com with ESMTP; 25 Jun 2019 04:19:50 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hfjUK-0001Ze-G7; Tue, 25 Jun 2019 14:19:48 +0300 Date: Tue, 25 Jun 2019 14:19:48 +0300 From: Andy Shevchenko To: Stefan Roese Cc: Geert Uytterhoeven , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Mika Westerberg , Yegor Yefremov , Greg Kroah-Hartman , Giulio Benetti , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" Subject: Re: [PATCH 1/2 v9] serial: mctrl_gpio: Check if GPIO property exisits before requesting it Message-ID: <20190625111948.GV9224@smile.fi.intel.com> References: <20190620062420.11650-1-sr@denx.de> <24bfb52c-6f77-b7cd-7421-9e6e4b0aa7d3@denx.de> 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.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 07:27:33AM +0200, Stefan Roese wrote: > On 24.06.19 17:35, Geert Uytterhoeven wrote: > > On Mon, Jun 24, 2019 at 5:29 PM Stefan Roese wrote: > > > On 24.06.19 10:42, Geert Uytterhoeven wrote: > > > Should both options be supported ("cts-gpio" vs "cts-gpios")? > > > Documentation/devicetree/bindings/serial/serial.txt only mentions > > > the "-gpios" variant. > > > > Well, the "-gpio" variant is deprecated, but still supported by > > devm_gpiod_get_index_optional(), and there are active users in upstream > > DTS files. > > > > My main objection is (trying to) replicate the matching logic inside > > gpiolib.c, causing subtle semantic differences. And keeping it consistent, > > of course. > > > > It would be nice if this could be fixed inside acpi_find_gpio(), so > > users don't need to be updated. There may be other subsystems where > > the difference between DT and ACPI may cause issues, unbeknownst. > > Sure, I can fix this. I would prefer to do this in a follow-up patch > though, if nobody objects. In case if you are going to do this, use approach from GPIO library. Perhaps, it may require to create something like for_each_gpio_suffix() helper. -- With Best Regards, Andy Shevchenko