Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1363801rdf; Sat, 4 Nov 2023 18:12:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyMKrpT2qjPCuBbINdPh9goKi/ybTxJmZCG6N7qdheUfhPdeVYEq46tJTIuX+ITrteLdKd X-Received: by 2002:a05:6871:5a8f:b0:1f0:b2a:768a with SMTP id oo15-20020a0568715a8f00b001f00b2a768amr17627872oac.8.1699146767744; Sat, 04 Nov 2023 18:12:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699146767; cv=none; d=google.com; s=arc-20160816; b=YFl9V0YI19IKQ1vEW1UdY8LQaP5d9zRMX3xBJG2JdTYwjhY/CJUyR9Fn7FHegUkUgR RARi6AjeWny9sNyk25ctsaiFeiW732hqfNwBvDRU5kQYVeiYuqF+xlJ0pB0hnUzdoBEQ Uxlet/tbG3fF/pSO3QlV8j2FU5MQGT55GFZq81/z/T6+OtvueBaMC6I7G8Ie9ChYdwww Jl8d3RBSXdFy2Kj88QUxmUk+UZJNNmZ2ANhboi8fqkUQJLxlBzqq5fAWGOI4FPzEXfcM BhebgzRyTIDoE1ZsYFgUWfqSJNd7By0FuNfqUxjg0Vb6aAOmeoHGsRDYaHfZRa/wTCB1 9XcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KqokHnVOovxHPccg3EnJbsWLXVdBMtrOcttvVjZa8Xk=; fh=mSJk8uFzjgzSLjnAiHB5YwTXDLkjCBoRznFMj+oD7Gs=; b=yad3C24JJNK41fENIDRqjDGEhFMdpryakAOVm+YS0ciS5H8IZkp9NOk4bXsv2axiqZ BpHN1/Ub0n30LwSZAsLNd06CbN8e70numbVHJXEK1ledCraZ0dqlnl0rCTTtb4KNGLQJ q1MhdzpcEzFa15P/9Hzk6xd0PJiPKPhFVught9yyJPBd8yWrMmpH2p9esNyktmhSpq5P e9Dl2gy+mvdiE41hBaDN/MrWU8QsItYRLEsBJjJmGD1iGYj3GLVrJt2z5wkCwFOY2RGp 6PN0z9IemRPmC4FqnfPiVlNCi3KBkg10XXtf1tFksIQKOKAP8hlymAArTW4WjwEtTP2c WR5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FWfQeNbU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z128-20020a633386000000b005859e8c7c2dsi4804138pgz.639.2023.11.04.18.12.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 18:12:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FWfQeNbU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6F42B804E716; Sat, 4 Nov 2023 18:12:46 -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 S229523AbjKEBMp (ORCPT + 99 others); Sat, 4 Nov 2023 21:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjKEBMo (ORCPT ); Sat, 4 Nov 2023 21:12:44 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4CF3CF; Sat, 4 Nov 2023 18:12:40 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-da0cfcb9f40so3372400276.2; Sat, 04 Nov 2023 18:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699146760; x=1699751560; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KqokHnVOovxHPccg3EnJbsWLXVdBMtrOcttvVjZa8Xk=; b=FWfQeNbU2jRq8m6HCAF/lBIebgrg/eNDPH2u8h+36Y/V7YAQZw4AyrCluEO9NppG1D D1BUWxqDnGBgETDH2Hq7s2ulgLKuDWF1XyqnQpwZ6NvYGSJtjfkGZt11MBzwJdkHJqjG sAQkGb5PF76yCYliccJ/zUuH3zoXQ4h7N3senpCyFqMXDZpyy/7TlaXs5Pf2SQQJoiVH QGd/5xNd9mg89JV4p/iDbWP5Bw0aoS6ovpPhI3RGoUmCrm04sckY6sR/AUgaoo4/v1BF 4CsSa0VRo2HBeRY9ybacRiV0nrTP3o1A7bDfxHWldnCTvyUCtW5+pAVRjN81O4mJTxnK KtBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699146760; x=1699751560; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KqokHnVOovxHPccg3EnJbsWLXVdBMtrOcttvVjZa8Xk=; b=havwziU0iMRdC1VinaqJOtc/t6phkwx+b9jQ/mFr7CIUw+s1jNj+EfjYAjLjmNTnOu 8dqe+yX+6IxX2GN6A2Jdeu+gefaAsZwkLoJgyA7CXo+TxartQczMfdowJn9QMN9jY7zT CreIrX55mnI5YmgwfL97PiC0sKde8PzYVZmwbHPMIr270uUrAMe1LKSCmTb84WWYSUZ0 w/SCeoZMx+uR3WkN9VmclghGIn0tfHQjHQ+opYDIPlOzrpp7Q8WnRb34jf8rMNkqoI+7 uEKzwb2gcUZemebKbiOgNJjNCLodBMaE6i6G72Ewp/gPsCcSagdNlIQWnnzzRBhhwYOx z8CQ== X-Gm-Message-State: AOJu0Yw1vrMHlTLDzha+EVuKqUWZ/XMKys4F+sUwtCU8jELthW9OMo+I AgZi/zExba3h1UUUUhMFmJOtXn5sBKo= X-Received: by 2002:a25:d748:0:b0:da0:86e8:aea4 with SMTP id o69-20020a25d748000000b00da086e8aea4mr24628179ybg.57.1699146759909; Sat, 04 Nov 2023 18:12:39 -0700 (PDT) Received: from rigel (60-241-128-164.tpgi.com.au. [60.241.128.164]) by smtp.gmail.com with ESMTPSA id h14-20020a170902680e00b001ca86a9caccsm3571580plk.228.2023.11.04.18.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 18:12:39 -0700 (PDT) Date: Sun, 5 Nov 2023 09:12:34 +0800 From: Kent Gibson To: Linus Walleij Cc: Bartosz Golaszewski , Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] RFC: Do not enable the v1 uAPI by default Message-ID: References: <20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231104-no-y-uapi1-default-v1-1-f60d318b6fbe@linaro.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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: 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 18:12:46 -0700 (PDT) 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.