Message ID | 20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1875692vqu; Sat, 4 Nov 2023 15:54:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjgFbHyQDdJN62FE880oahzlYd3kwGGgyMbILnbRHdkkPmhMskCl5fanHy2MQaAA+s1gHu X-Received: by 2002:a05:620a:d8a:b0:76d:4252:95d2 with SMTP id q10-20020a05620a0d8a00b0076d425295d2mr29823402qkl.39.1699138494052; Sat, 04 Nov 2023 15:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699138494; cv=none; d=google.com; s=arc-20160816; b=NRni3acfnIRB4SHUw6eCeE428bP14VqwEe9IYuYBtR2Rl6QBtHqKhjTjdaJ/2LNxcn 6seeEzkPYUTL6aoEgzzblOjt/xX1xHXOZfRa2Ct7sXiWbh8NQ81WG7YrEo917CbyxhND hdTTPdtQRvUnpFQKupTBESVWsQjQvT51x5iB9tT7/iXwxrU5C/FLpdzUWRPrUZRs5dH3 q/jeZ3DUh7noeNPs33M+EqNI1lt2jnwMRzKLMPDM7solhJk56DIRYE9mHxm9SCgYg0N8 ZpndBNbslgaaQpCjWFK/8/mqvmw5oGJo98ROZ3Vc43R5/wAVjdR8G+spZDwMNKasgUVL g9Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=peHB8fc0FpN3X8Q1SVuag/CxFROBwBEcNoz37/Mm90k=; fh=8RVnzeosYF3D3QRLu1FJGvm78u8IIgrcQlSt4mm4oxU=; b=r49PJbStA2P9+NIeicoMoTN8fS4cBzfxedVaPs/7x4ewCjZvitiOhxXBtZn7cpe39q wpVdP1V0tssDyXnTn+qAbmgnGILMNiFIxrtoFo7lhgCjnMQ7uuXDiRKCMGVLl+fyMDbX lVJ8DCfAvy4IjhMUasYz7rdHxT4JuxF7389aF61R3YJj6ymkfb5NDtylucREF3fejk3W dGA2CgRQHnLpnYXCBeMVsUQd8wyQcW6x9stK383XldNchirNuiR50qwhhYK1wSs1AWE8 9zy4r2GqH08KkCzIk7SBBOe9+LMqlQAKpZwSROGWE4f9K8Z7k3ZuqI5j7I/8am9e8a96 q6ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLWqBfYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id iq14-20020a17090afb4e00b0027d088ae385si4729372pjb.96.2023.11.04.15.54.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:54:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLWqBfYz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A8D388045950; Sat, 4 Nov 2023 15:54:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbjKDWys (ORCPT <rfc822;lhua1029@gmail.com> + 35 others); Sat, 4 Nov 2023 18:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbjKDWyr (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 4 Nov 2023 18:54:47 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69501FB for <linux-kernel@vger.kernel.org>; Sat, 4 Nov 2023 15:54:44 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5079f6efd64so4053209e87.2 for <linux-kernel@vger.kernel.org>; Sat, 04 Nov 2023 15:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699138482; x=1699743282; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=peHB8fc0FpN3X8Q1SVuag/CxFROBwBEcNoz37/Mm90k=; b=ZLWqBfYzAmE38SJpIxyif1VHRPaTcs5RlI6LdhYhATQP4/ciXKGZTffRCetlnmRUDj mXF5QTf/Y58lqU4FjjKVuWqf+6skai1oJthpy77JBeiOCX8Exsj/0OItkvnwB1A2vYLO a78YhFUlWVVG6OwJ6EjtbopmzDBi+/caDW+WslQSO0A3O2WbObVpuuWC+Qx3YKb/NQDy XY19Slo/QPRySmH222w8AKqLGDrr0ZsFH07CG4xEpT89lh8MsA3geNLw2nztF7i2A6g9 2jU7JXZDXhgj5F6kf9Yi9Ef+5mIs0e2kQRFK2evj2tSbcYUTNR9tePMYg8+S9+3t/T6o zx5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699138482; x=1699743282; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=peHB8fc0FpN3X8Q1SVuag/CxFROBwBEcNoz37/Mm90k=; b=aMEtaHZr/g5CqS165Th3lpfj3f+BzDjE5hLEP2aQEW8Wcf8D0Vmr96l+ia1E1XM/V3 Xj8r9cSTC5+fOGYXRV5BBEsokgw8/lno8JBVmnW9MIp2oLdCEa/tIP4+4SgD0nYNJokG r5i/Pkjo4dEio8zRJ75XeF6CpKxoetiTzAs1cJ8V9Zo+6z8kR5QbPvg7P/HKz/ed4blR aqHiCVINRAxd//4RWMmzJurks2kA7Xi3hR/TzZ0Mq/BNmMYqqLdW13ilJkubYhpVpqcO sQtaA2eZqTKfkUKuHeYnGt4ual5uTdfwMy2pkJKd5sHOvjk8pJYj2fPuAaWmzkv0KJra S3PQ== X-Gm-Message-State: AOJu0YypLpH6CzaNh9ErRw1FJo7xmP9AHKVu81w6/2oRYnsvQBXd9RrJ F7/+ls6LZpCUQKPhgJgAeHivVw== X-Received: by 2002:a19:430e:0:b0:507:96c7:eb1a with SMTP id q14-20020a19430e000000b0050796c7eb1amr18075662lfa.54.1699138482336; Sat, 04 Nov 2023 15:54:42 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id eo28-20020a056512481c00b005079a3c872esm636475lfb.240.2023.11.04.15.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 15:54:41 -0700 (PDT) From: Linus Walleij <linus.walleij@linaro.org> Date: Sat, 04 Nov 2023 23:54:40 +0100 Subject: [PATCH] RFC: Do not enable the v1 uAPI by default MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org> X-B4-Tracking: v=1; b=H4sIAK/LRmUC/x3MTQqAIBBA4avIrBvwj4iuEi1EpxoIE60oorsnL b/Few8UykwFevFAppMLb7FCNQL84uJMyKEatNRGKWkwbnjj4RIrDDS5Y93Rammpa720zkANU6a Jr386jO/7AZOZOZ1kAAAA To: Bartosz Golaszewski <brgl@bgdev.pl>, Andy Shevchenko <andy@kernel.org>, Kent Gibson <warthog618@gmail.com> Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org> X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 04 Nov 2023 15:54:52 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781675845460773670 X-GMAIL-MSGID: 1781675845460773670 |
Series |
RFC: Do not enable the v1 uAPI by default
|
|
Commit Message
Linus Walleij
Nov. 4, 2023, 10:54 p.m. UTC
It's been two years since we introduced the v2 uAPI and
the major consumer libgpiod is at v2.1.
What about discouraging the old uAPI?
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
drivers/gpio/Kconfig | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
base-commit: e392ea4d4d00880bf94550151b1ace4f88a4b17a
change-id: 20231103-no-y-uapi1-default-4204e86c04a3
Best regards,
Comments
On Sat, Nov 04, 2023 at 11:54:40PM +0100, Linus Walleij wrote: > It's been two years since we introduced the v2 uAPI and > the major consumer libgpiod is at v2.1. > Believe it or not, it is nearly three years. But libgpiod support for it, added in v2.x, is less than one year old, and migrating from libgpiod v1 to v2 is non-trivial as their APIs are very different. So I would not be surprised to find that the major consumer of the uAPI remains users of libgpiod v1.x - which requires the old uAPI. > What about discouraging the old uAPI? > If you want to provide the end user with two years to migrate, and given that libgpiod is the major consumer, you might want to hold off for another year. OTOH, if distros/users want to continue including/using libgpiod v1 they can always re-enable GPIO_CDEV_V1, so I'm not completely against the idea - just be aware that it may be more disruptive than you might expect. Cheers, Kent.
On Sun, Nov 5, 2023 at 2:12 AM Kent Gibson <warthog618@gmail.com> wrote: > If you want to provide the end user with two years to migrate, and given > that libgpiod is the major consumer, you might want to hold off for > another year. OK then, just testing the waters. Probably we need to encourage libgpiod 2.x a bit. Yours, Linus Walleij
On Sun, Nov 5, 2023 at 4:39 PM Linus Walleij <linus.walleij@linaro.org> wrote: > > On Sun, Nov 5, 2023 at 2:12 AM Kent Gibson <warthog618@gmail.com> wrote: > > > If you want to provide the end user with two years to migrate, and given > > that libgpiod is the major consumer, you might want to hold off for > > another year. > > OK then, just testing the waters. > > Probably we need to encourage libgpiod 2.x a bit. > Thanks to Phil Howard's work on python bindings, they should soon be more widely adopted. They are now the first thing that pops up in google when searching for "libgpiod python" and now have a proper homepage in pypi. Running 'pip3 install gpiod' will now work on systems with no libgpiod installed too as it's vendored with libgpiod v2.1 sources. I also plan to finally get around to using breathe and exhale to produce proper sphinx docs. So hopefully we'll start getting traction soon. Bart
On Sat, Nov 04, 2023 at 11:54:40PM +0100, Linus Walleij wrote: > It's been two years since we introduced the v2 uAPI and > the major consumer libgpiod is at v2.1. > What about discouraging the old uAPI? ... > - default y > + default n 'n' _is_ the default 'default', just drop a line.
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 913948876c93..65c9914ee3fa 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -85,7 +85,7 @@ config GPIO_CDEV config GPIO_CDEV_V1 bool "Support GPIO ABI Version 1" - default y + default n depends on GPIO_CDEV help Say Y here to support version 1 of the GPIO CDEV ABI. @@ -93,8 +93,6 @@ config GPIO_CDEV_V1 This ABI version is deprecated. Please use the latest ABI for new developments. - If unsure, say Y. - config GPIO_GENERIC depends on HAS_IOMEM # Only for IOMEM drivers tristate