Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp806352pxj; Thu, 20 May 2021 22:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5LvLwzhSGSLuMNQggP3U6vq+GgLVksgSC940MBcpw7VH3XgGUM0HCNaYroPjrbsYa/jE7 X-Received: by 2002:a05:6402:5241:: with SMTP id t1mr249464edd.161.1621576691068; Thu, 20 May 2021 22:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621576691; cv=none; d=google.com; s=arc-20160816; b=qSHaxSLBwmcIQSsj1Da7j/D6fnXFdzxy79835llPaAin+SFufF7L7Mvg6urJnJByv8 GAZVIMvtInuVhAj603V+T4YGk/PXDBfeB4wNLLQyzhYCqawUP4Jn7/dk4Ja0FSQEE07O k2uwK91ZI60Zh65lJfW/OnU+ymSJDErmOGMbP1EE2Evrw2xSHhhxCB1oUPOCVHjL/Zgc NDQnCeXvPU3Zc7jbRP8uaCD2ibxsygUKQJ3NMPeZK6wgY/Neksht+UtZF6c0MqWbSh/M vqGv7d1CsbFIkpI+OW8S9Rvzk26rsUFCROnWVDNipxUls3xnok/wtl6rwgab7k/P1FF2 xniA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=9wizOY0EarwWfoT8sBSAOULyiMZlua8eTWF9dLcnBQo=; b=xSGjRxVst3ByCWD2R7mlLmYyote9XgTW8DzUEZfbVvoJ220Qaq9a6DBaSiwHY2n27F 5K1hTzptcv0pZijAxGGZmjtDA+BYaVxmm/5qZnPzvmrheTX2YrA8Q1kxQ/TZlDLC41Vb GGcltZBpmrUY/RxliG22oSjYpc/qENy8RyrzKe1sm4yxhDS4p5LB5AkY8YVQSrK6NHUn qOtbn3X8id6jAbjVuG6fmK+jckx+7zYIpY3jl83DTPDB7G41eMrY5RYkN4m+8Y0dGuDv g0hqUZ5mUnJ7eh6fO3qEt7LIoeiCCTJz/6o8VJ1NeuADC/JkEb8HAvAmUnsxBcz7pVvY Lvfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=D5sKWuHd; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si5139750ejy.439.2021.05.20.22.57.47; Thu, 20 May 2021 22:58:11 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=D5sKWuHd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232606AbhETOno (ORCPT + 99 others); Thu, 20 May 2021 10:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231246AbhETOmp (ORCPT ); Thu, 20 May 2021 10:42:45 -0400 Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32245C06135D for ; Thu, 20 May 2021 07:40:02 -0700 (PDT) Received: by mail-yb1-xb2b.google.com with SMTP id w1so11812382ybt.1 for ; Thu, 20 May 2021 07:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9wizOY0EarwWfoT8sBSAOULyiMZlua8eTWF9dLcnBQo=; b=D5sKWuHddAS6wsMF0yqrzBm8O73rmgG9E6k2rGGSsgrHqiz3X4sJH9MzGZlLHljfZp TSlo3reO9Tx+GiS256/5L3pL7Myy3vXOvSe8YImblN2uNqQoqScgvXzJhSSzcIH4gUn9 96Pn9IwKKR4hRxINmz/4aBVxsm+CJKyx0KWlGZk9X/qjfOquBzSsFJ0bMHevFPmuNjRX 4mdye2AQMYcpE+aU5ugeUU2tM5kCVCEm7twjK7c0/AqP0TYaH3H4Pezz1NmsaVVOvdNr TFm1CdOlc3kkH5thL3BgUhqS3+e6Q0ete9R0WV1t+8PvLqaUrduM2OovkhCSsc6KTzLf 79Ow== 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=9wizOY0EarwWfoT8sBSAOULyiMZlua8eTWF9dLcnBQo=; b=rNhc2wdrzWcbqWBSmHbd9n117Z8LnXRhIHN5dgNM4reoT57VEEQq3MG9EFnYP/KdBy Kaxsooa1ztVqyuNFmiNAITjvAjH7k4I4vBZLYTl0CATuPrcfEjcHXA8YK9FPFMqvTCMs GtCM8ryWoGDOdK4IDF2qnQGgxNE0e1Di2hlTC7onVQ1HiXG1POoJ0UWRWj8RMtFFGHdJ TULHdRgILSvivWAyriQ0CJWHUUmFjJX+wiTxMAng5kCDhy6c73PAsH1++0MFs10+OC8G U85RKC1gBLhUaGUzVqlpNUtbrBKDYxfDqLju0O+CmCqtW88tosxU03ri8pQH7JwunvOA fWbw== X-Gm-Message-State: AOAM530qpNzTHrtpV6fFDKOrw/FTpQXHdDxrNk1UP8yiE/yplqTzjnz0 B96sFMBSu2cy8HeLVwlDAHo0l8za983ax25gYnEqWA== X-Received: by 2002:a25:287:: with SMTP id 129mr7557117ybc.312.1621521601487; Thu, 20 May 2021 07:40:01 -0700 (PDT) MIME-Version: 1.0 References: <20210518155013.45622-1-andriy.shevchenko@linux.intel.com> <20210518232451.GA7362@sol> <20210519080434.GA22854@sol> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 20 May 2021 16:39:50 +0200 Message-ID: Subject: Re: [PATCH v1 1/2] gpiolib: Never return internal error codes to user space To: Andy Shevchenko Cc: Andy Shevchenko , Kent Gibson , linux-gpio , LKML , Linus Walleij , Suresh Balakrishnan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 3:15 PM Andy Shevchenko wrote: > > On Thu, May 20, 2021 at 4:08 PM Bartosz Golaszewski > wrote: > > On Wed, May 19, 2021 at 10:30 AM Andy Shevchenko > > wrote: > > > On Wed, May 19, 2021 at 04:04:34PM +0800, Kent Gibson wrote: > > > > On Wed, May 19, 2021 at 10:45:16AM +0300, Andy Shevchenko wrote: > > > > > On Wed, May 19, 2021 at 07:24:51AM +0800, Kent Gibson wrote: > > > > > > On Tue, May 18, 2021 at 06:50:12PM +0300, Andy Shevchenko wrote: > > ... > > > > > > > > Fixes: d7c51b47ac11 ("gpio: userspace ABI for reading/writing GPIO lines") > > > > > > > Fixes: 61f922db7221 ("gpio: userspace ABI for reading GPIO line events") > > > > > > > Fixes: 3c0d9c635ae2 ("gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL") > > ... > > > > > > > You immediately revert this patch in patch 2. > > > > > > My understanding is that is not allowed within a patch set. > > > > > > > > > > > Why split the patches instead of going direct to the new helper? > > > > > > > > > > It's for backporting to make it easier. (I deliberately left the context above) > > > > > > > > > > I can fold them if maintainers think it's okay to do. > > > > > > > > > > > > > Not sure what the constraints are on backporting, but wouldn't it be > > > > simpler and cleaner to backport the new helper? > > > > > > Logically (and ideally) it would be three different patches: > > > 1) introduce helper > > > 2) use helper > > > 3) fix places where it's needed to be done > > > > > > But the above scheme doesn't fit backporting idea (we don't backport new > > > features and APIs without really necessity). So, the options left are: > > > > > > Option a: One patch (feels a bit like above) > > > Option b: Two patches like in this series (yes, you are correct about > > > disadvantages) > > > > > > > But, as you say, it is the maintainers' call. > > > Third option is to backport this patch but apply the helper > > immediately to master. > > If I got you correctly, you want to have two patches, one for > backporting and one for current, correct? But how can we backport > something which has never been upstreamed? > Well we would not technically backport anything - there would be one patch for mainline and a separate fix for stable. Bart