Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2820814pxk; Tue, 15 Sep 2020 03:17:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTAVpeQhPIX+TT5ZEny3bK9E6LbYzChsEE6ps7rwoUwGSO0JzrgTWx7/FbyEuhL8k8VMX5 X-Received: by 2002:a17:906:2ac5:: with SMTP id m5mr19103354eje.210.1600165027954; Tue, 15 Sep 2020 03:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600165027; cv=none; d=google.com; s=arc-20160816; b=mR4bqA56p0Dz+7JoYPtR67INxC6rSqxEX2blcWZ6HoDJ0KPQ3vW6IncYmAIGPbnsId l/qeSUvrF61KD0acSMV9PXyXHlq5czCoXMYvoAXdFtYFyWgOHP9vKwChtaTP2IYcZZ/S eHsbexmSVtUp4KPV1v7+xTS9sPJUAkpl/dcv3BgaKX6L7inhewxZWeMm4f0mNjm9X2nh 9JkejiiPFZDVnYBPEYqjQCTHutvSZ+Yqh8SBIBxy1eJkZoijgQgr4y4CJnRzYDBN4CHA /aYKwA1LSk8/dW99VAyxvXsV6kaOIsEvNdt5SDseRH/Pb5lx0PUnwoN/YNh0uCbfeJG/ 50ow== 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 :in-reply-to:references:mime-version:dkim-signature; bh=2VHtAarqbvrY0I2D+WdAfAQUkIppSCm/26kSoR6hinY=; b=voDMR8R/qjhncAgYA9wvMAH/2oTOzlRDYBKNNhkCMsvmWNDJPYhWtDCGF65azBFLlj UUS67UDfkNaJNB7OqhfoXb9ieM31IBDh6hZ3rGKm827Q+oGV7xv3ISyg1TXleQSgno0D VH6W8V7kXSwbiNNeVPGiW8y3pUw5rhLh+NtgWMhPlXSpQWyXW1LYqY9uyrEPi/QqXQtA 1Li1O2ig+COJKYE5NP/untv87ANSjdDXu0b8EmkG0WY53j+Zj3WRfJDoe9Ij7f8Tokl2 Ppey9OeM9ZSbFLy9bKbRmL33x6Nn8hbVq8zqVqbsg9TCRvtBZbPWztSVmDBGmLfRQBK0 mJAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GmfeakCJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si8544040ejr.667.2020.09.15.03.16.45; Tue, 15 Sep 2020 03:17:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GmfeakCJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbgIOKQL (ORCPT + 99 others); Tue, 15 Sep 2020 06:16:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726095AbgIOKQJ (ORCPT ); Tue, 15 Sep 2020 06:16:09 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59C9EC06174A; Tue, 15 Sep 2020 03:16:08 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id k15so1633898pfc.12; Tue, 15 Sep 2020 03:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2VHtAarqbvrY0I2D+WdAfAQUkIppSCm/26kSoR6hinY=; b=GmfeakCJfMitYyFC0eBEP7mPtrrCr/83+/YKfrYZaqSqldRGBnp0isCeTtv4cmJqS/ cxvcoHFU1VKRchwRjLwehc9FNL/EFjg9BdnvYKdt/AMaEEXGPwbH/pJWtlhiy2B1iWzd mBBeHjplV2aXmSdaOO80J94bWzibYhkZ/Ih0U/YExwJE5hyEdMMYNZAiSZo6Y4PYF579 hw+UV1H9uKnUY9VkYzckzO9nXUsqnF4bM7JtSLMHKLeVFE3wV7KjAOIR3Uf0lcIhvPt3 OTD02VMxyGcuZABUV9QtFttEyTNNd7BTzepOM+Frk6CQVUonkPFy5vSqcrs274cByQZb nMPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2VHtAarqbvrY0I2D+WdAfAQUkIppSCm/26kSoR6hinY=; b=R+ceKjRcx/0KOTRdPcvBR7XpJQHeY7Ax3sGe87ZyNKWMCpCOBX8DdAm3dOlPBrXkrM FSeRqWXWQwm6rdWPiXDGe9jVCRz7jUN/r6WSO4zL3RgPLb4OPYByOBN19+ok9RvK65QD 5wja+6gFU+4kpvJy9kPapt9B65nJ4GGu0aMt+Evc/25L1I9d6+kCnLCac0FWAnDfpghv P1ciFJEOzZO2us0Wd+CCeJSE+ZqUl/SdBdp/GH4qLwXJZzpp34MvGwd2e2LPMJWtd78Y hjrh/QqVnav5TGUHMWqd61MpeSxZPd8iUfHfaIWL0N0xpf3V1fC+pP9AQ5IOW7woTwhD +Lzw== X-Gm-Message-State: AOAM532nBc/fy3mrxcN0GVqXoMH1E3uKENtBU7VJY15sILd+4RtOmgrg K7DwRtvnri0ziYSQsBwLoUD+jQSN3CVghBblIow= X-Received: by 2002:aa7:9201:0:b029:13e:d13d:a10c with SMTP id 1-20020aa792010000b029013ed13da10cmr16615463pfo.40.1600164967923; Tue, 15 Sep 2020 03:16:07 -0700 (PDT) MIME-Version: 1.0 References: <20200909102640.1657622-1-warthog618@gmail.com> <20200909102640.1657622-7-warthog618@gmail.com> In-Reply-To: <20200909102640.1657622-7-warthog618@gmail.com> From: Andy Shevchenko Date: Tue, 15 Sep 2020 13:15:50 +0300 Message-ID: Subject: Re: [PATCH v8 06/20] gpiolib: add build option for CDEV v1 ABI To: Kent Gibson Cc: Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Linus Walleij 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 On Wed, Sep 9, 2020 at 1:33 PM Kent Gibson wrote: > > Add a build option to allow the removal of the CDEV v1 ABI. Reviewed-by: Andy Shevchenko One nit-pick below. > Suggested-by: Bartosz Golaszewski > Signed-off-by: Kent Gibson > --- > > This patch is before the v2 implementation, and is non-functional until > that patch, as some parts of that patch would be written slightly > differently if removing v1 was not considered. > Adding this patch after that would necessitate revisiting the v2 changes, > so this ordering results in two simpler patches. > > drivers/gpio/Kconfig | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index e4debd66d71f..ff9ca836026b 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -82,6 +82,18 @@ config GPIO_CDEV > > If unsure, say Y. > > +config GPIO_CDEV_V1 > + bool "Support GPIO ABI Version 1" > + default y > + depends on GPIO_CDEV > + help > + Say Y here to support version 1 of the GPIO CDEV ABI. > + > + This ABI version is deprecated and will be removed in the future. > + Please use the latest ABI for new developments. "will be removed" is not what is going to happen in at least the next few years. I think something less strong would be better. > + > + If unsure, say Y. > + > config GPIO_GENERIC > depends on HAS_IOMEM # Only for IOMEM drivers > tristate > -- > 2.28.0 > -- With Best Regards, Andy Shevchenko