Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1246032pxa; Fri, 28 Aug 2020 07:40:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg+XHi568bjX+AGMfGIGv83pXdIInSjtf3H3hSOodshEijZwuN+nYBrkfFLRvDVgSf3H2P X-Received: by 2002:a17:906:a40d:: with SMTP id l13mr2237237ejz.283.1598625644765; Fri, 28 Aug 2020 07:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598625644; cv=none; d=google.com; s=arc-20160816; b=qK534DH9i4uQuqpZyehRlezFEwt8PjV9qtBpWJKOWB/jrGxyoBzJ85rz1Z0Ou6S1qe T5zQ//HDFpdwmuISsl1fHr0u/pfN7/OGkODFjGf7wgUlLY7vehQ4+lZZnfVVT1Hx6qAB 3AcWy6ddsG/mexCOctAiDbRiDfrVIM65l3qsNNz3jJL7VuPIJr/LiTbTmizkY2YbrOKm wx7B98zIdTqwsBbQmPGQlKOdIpmPFQHuVjYXTIcb2vD9Ae7FIPI5KCBLgrNNNulx5TD4 QV9kGP22wqFRXu1VofQnS6ZmEDR26tvAV4LTWJXJK8fcw5fdo/hq8cIjTUD/mRG5RTIw IqSQ== 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=4mU7k790HuWLIpNETwnz7Qzfl109PAxDhdZuzU9xKJQ=; b=SqJq/TXUXFOvR5eM257Cpd07d0Zvyz+E1G/+Ag5P6SqntO9UYFmVaOxALUO5Ql6/0V FKivCH3FOITXQJJ8s8ovG1YU6H6xjcmuZY9RCAfXzcVhrDASKIk+u4XoEK2AZDCNJ43w 9q17Rn7RuSZNIs2UsIEx8qDIZ2olVtHoYCoAl2P8A9pTOXC0iolQuWsTlJMvowssa85u LjXZ8S4hhiQ1/4CjL7cYYpsVbS1VQaio/f1uabgjUWAD/cNHDoATgY5pkakD5qBbH9UE BrDQktob8sr6ZSnPvJ1ztLckMrccL7RyC65R3guFHlZ7PakrNd99UisRJH/c7H/aEokg zmAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UJNfiaDz; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce6si733156ejb.734.2020.08.28.07.40.21; Fri, 28 Aug 2020 07:40:44 -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=@linaro.org header.s=google header.b=UJNfiaDz; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbgH1Ohe (ORCPT + 99 others); Fri, 28 Aug 2020 10:37:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgH1Ohc (ORCPT ); Fri, 28 Aug 2020 10:37:32 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD08BC06121B for ; Fri, 28 Aug 2020 07:37:31 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id m22so1571399ljj.5 for ; Fri, 28 Aug 2020 07:37:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4mU7k790HuWLIpNETwnz7Qzfl109PAxDhdZuzU9xKJQ=; b=UJNfiaDzdbzf5ty9QvZhyk7ZCWmYoGqsdmjASmP7eTi9cKLQeuopls1a5lNFUBiiD4 tbg9XnZc0fkbNQ4QIdwJf6V9sLu/nuLmygZPU3mxuHYBVqNTDJ1qF2xIampR2yzGbdX2 UITbKOG5KIB5poCrDMUHFjBXCQDjgnYQ4eB0K68KyrCAkdGPw+CYsQ7TG5DvY6BvrPwX bzpyanzBxhLqulrClklfkTkTynK9KX3UJCMbRShHzvJV8SI6hca4pKpCezGkX2MKvR0N hHGem4BZITKd0S1zadSg/qZG/ac6vwbo2C+BN1l5CKXrT3pE8H+ThQzYolLv4sYF+/Y8 9yzQ== 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=4mU7k790HuWLIpNETwnz7Qzfl109PAxDhdZuzU9xKJQ=; b=EaZmo9E7rrcKzpAOArdgTYJWRJ6DhQ8onv8jQrCLdpnW0M24S8RG2yIGr9pwR0i8lY kr9z4h9jEZmXIfUHYR3GW1fVKmZ+boeMoNskXjdRaIHKCIoyiuhyXSkLP64jnHlibGd1 PjD5aTCPV+kf7wiK3wNWSfynyHf7NpfAfV0J9z0FZyK1wd11QE43xC7YUolfJf2B1AvI nKgGBkBuoBGq21uBslgisV06xkv8bl89dBXfb3MucT4nrXlYHTp/9obtTJ4jgt1ZuiVC 5j4tdyiONTwmfnrZqUUT0i4ClG+BFCd1SlhxFH7kbbftBuzJNc96G0t007U1rC02e39J y4xQ== X-Gm-Message-State: AOAM532sOGtXcTD+KrTBP1+0RScxCvkJMbdVTZYIKkZ2G5gNJyTxq8Z+ BLie/5QTdju8wtubUiPQuoonhUasKdXKkrcv5CQzHA== X-Received: by 2002:a2e:8144:: with SMTP id t4mr1139879ljg.100.1598625450137; Fri, 28 Aug 2020 07:37:30 -0700 (PDT) MIME-Version: 1.0 References: <20200827140020.159627-1-warthog618@gmail.com> <20200827224742.GA3714@sol> In-Reply-To: <20200827224742.GA3714@sol> From: Linus Walleij Date: Fri, 28 Aug 2020 16:37:19 +0200 Message-ID: Subject: Re: [PATCH v5 00/20] gpio: cdev: add uAPI v2 To: Kent Gibson Cc: Bartosz Golaszewski , Andy Shevchenko , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" 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 Fri, Aug 28, 2020 at 12:47 AM Kent Gibson wrote: > The particular use case I am considering is one I had been asked about - > changing a requested line from input with edge detection to output, and > vice versa. Losing interrupts isn't really an issue for this use case - > it is expected. Yet the current implementation requires a re-request. This is possible to do for in-kernel users, but I don't know if that makes sense for userspace. It is for one-offs and prototyping after all, there is no need (IMO) to make it overly convenient for users to implement all kind of weirdness in userspace unless there is a very real use case. Yours, Linus Walleij