Received: by 10.223.176.5 with SMTP id f5csp662353wra; Wed, 7 Feb 2018 05:35:17 -0800 (PST) X-Google-Smtp-Source: AH8x226kPbuUTahKxlqf7slLBh8Aq2duieuLaMV23MlSs8I9adKMM7+uMRE3FU0aviXOSNZNfhpZ X-Received: by 2002:a17:902:8601:: with SMTP id f1-v6mr6169373plo.380.1518010517109; Wed, 07 Feb 2018 05:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518010517; cv=none; d=google.com; s=arc-20160816; b=IvzRZJvsNmlJeTB0g4cbsXOi0emAPMqVCwl3Onwbw8iOSKfuN3g7+H5sYkXykzZ293 dKMQ5VXpcCSjUci4wTBRAOqxWCJnh5aYbTFFiINa5XSiASHjvjJECKiWGQH0/BSiwxgc /vQ+4iLXpy2LmucqytKXJGDDV8Vdq4Uuab5mC8jG0RpU/OPKLJZr72cGUgLV99rZlEJA dpj2WboAzaRkAoEnTMt4I6G0b5otM7qNqaq4OUIHzTLy4Iilvi4Ic5fXqXepLsZds4G7 KXeANSjtT+3bo5auMPA+Y4tl0rS5+HSoCVOHFFL4uify1XYllRW9tiArexEY+zf0PFPe Gi3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=1YYJDol1e9pu/uNkXE9NuWKcyQRtCv8I6chUA0YCD1g=; b=hfd+mIaTG9iGuxR2NzjFKvxC2k1v3fGlop7sm8H1iPLPxfhADqxbB8cuUAZg5jYPI5 iOONrbROi/+iozN0JuJ3EJBcTvN1HeGO5t0AT3n5y5oqF3HdrQjHJo6LeX59qXZ4yokN zUUcBkdq3TSOvlZvj4i0jCBQZdP9L9HHFuP1+03hdlL/dRBora7SkbFnXiHx560cDJrl 3hiHvurXG4WalYjQOJB8iYfB0pLousZxby9K+3/1k+Xeoy7dSzE9LE0nWkrKx7JcVNDp ICDhtCDF3prehwnJ54z9aCaxKwwrOpXKNG7NhJec/YhOzTG0AEQiCGFby/l6L+eLkQ6f 9ktQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMsXZHoG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z131si924558pgz.803.2018.02.07.05.35.03; Wed, 07 Feb 2018 05:35:17 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=TMsXZHoG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753939AbeBGNeW (ORCPT + 99 others); Wed, 7 Feb 2018 08:34:22 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:38927 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753721AbeBGNeU (ORCPT ); Wed, 7 Feb 2018 08:34:20 -0500 Received: by mail-io0-f196.google.com with SMTP id b198so2015914iof.6 for ; Wed, 07 Feb 2018 05:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1YYJDol1e9pu/uNkXE9NuWKcyQRtCv8I6chUA0YCD1g=; b=TMsXZHoG5ycfjTIwmjGb6kCn8W1yaVzCQvOC+zQj6hC7ukcSZSsBlafbpeiw0/XTWo MulpX96HMZiPvnre/PcP4Hen1tIDIGGWeQ5F4cIU3Q/+4RunCceP3kPBRgYOOgTR5+X3 mbAuE8uXUMM2L+1Qko93k//zX1BhWei/G/Gqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1YYJDol1e9pu/uNkXE9NuWKcyQRtCv8I6chUA0YCD1g=; b=EguCDJlnE4rodNqB2KimC45dV1BVwxSVPiZ/hdYkyp8v6dLp2p907ZVxSnsXW2otZh wDKUwEPPnpGZ+NE131/fmUOze1NAWEX3OcnJy3v93JyNvwlwvVv1tFE7a3+e4p8npPSq 9cx1R4M8r4enC9KSHmfFYpDXoPEkwg8VWD+V5ZJDX3iWp9RYIlzjoqGz7zRquWYe/6bP q5qAbOhgq/FaVxeHwtOXXGoxaV3Z0F5BD//bTFBsB/AgKva3Yh2OCOYbqojWQmBPqHKU 08zjXlL6fEP4c/tijQl3Q+JbOE3M1iXUhBJB6mve2hAKQi3vJkpIPNl2t6T92IepB8VA I7jA== X-Gm-Message-State: APf1xPAYw2VzzBFJ4PWQ4SSgn5y2KdYqLxxn54/3hUCynclu1KjOP7nc CefczGUJpEYiYFb4dIMD/r6EXQD1vjjYWXEYzI06Ug== X-Received: by 10.107.104.17 with SMTP id d17mr7225478ioc.138.1518010459448; Wed, 07 Feb 2018 05:34:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.102.131 with HTTP; Wed, 7 Feb 2018 05:34:19 -0800 (PST) In-Reply-To: <20180126011400.2191-3-sboyd@codeaurora.org> References: <20180126011400.2191-1-sboyd@codeaurora.org> <20180126011400.2191-3-sboyd@codeaurora.org> From: Linus Walleij Date: Wed, 7 Feb 2018 14:34:19 +0100 Message-ID: Subject: Re: [PATCH v2 2/3] gpiolib-of: Support 'reserved-gpio-ranges' property To: Stephen Boyd Cc: "linux-kernel@vger.kernel.org" , linux-arm-msm@vger.kernel.org, Linux ARM , Timur Tabi , Andy Shevchenko , Bjorn Andersson , linux-gpio@vger.kernel.org, Grant Likely , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, nice work! On Fri, Jan 26, 2018 at 2:13 AM, Stephen Boyd wrote: > For now, we plumb this into the gpiochip irq APIs so that > GPIO/pinctrl drivers can use the gpiochip_irqchip_irq_valid() to > test validity of GPIOs. But is that the right thing to do, given that we just took the trouble to define a DT binding that is explicitly about any GPIO, not just IRQ capable ones? I am worries that the *irq* infix etc on these functions will be a bit confusing. Is it a lot of work to make it just generic and maybe bake it into the gpio_chip so as to refuse already in gpiod_request_commit() in gpiolib already? Yours, Linus Walleij