Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6792906imu; Mon, 3 Dec 2018 02:58:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqzKQbQcXIFaEk4zFtPhv96wjwCDl+eZYQFc7+YPxBtaHlqMJC1W6xmBP1dgVMOoN9yT1y X-Received: by 2002:a63:5346:: with SMTP id t6mr13163483pgl.40.1543834712160; Mon, 03 Dec 2018 02:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543834712; cv=none; d=google.com; s=arc-20160816; b=NWvKSq8XrqRBnBkGZmX26heo9JF95xNvKwks64gX9C7YO9nPac+nQwrPxlQEFgSCCQ SYEQbJTme3VxWHxBtYuzJoEi6nzrWUZwTWU6E1t26ikQ8NguM9cxZvC7u9WPEGvw7cva 52GC3bd1ZIoCQBA0sgdbRCeqGlwGm++rwCeflYz8qFEQLRWG/BqCwxnads42rUyYLJ0X d3CoM4l2y996H8vaElyQbmQFCqqllnB0n9bM6aPthaD+my+b1RZY+5qtIdOQdr3AZDYJ fWH+5C677gAUlVcFUYN33KJo9NQxPMbxmYczRtEZFpge+jCpdbM1UDLRVu11UJs5jYOO LH2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pzAGF8bpBTlswVikN04sR7r5QMuSxZbyY4gYAUT/Sqg=; b=tkqkne/F6ynQEhHJzZus41N3gkv9/kqCr81r0TtVVcluZ+2zR56KRx77GirXPPwRuD VMURnzyJNeYhPRPIL76NRXNyzEUUc86GQzEOf5y7sfkT06TAswTMc96FGcjDUHLNlSh7 Nq054oLba5qymFp9fsoohnwlE646X9Cfd63Wdk7Sa9bMWnKsqfUKJ1KDInblpe4fprtK Z4tOhfFm/RlOXvF4xWRk7p6uLfkAormzngOgVRaJ+eQVQ06oKoOR8414MlTztwKtktEv +dFK1kyuuXs9uourYV88FEvyFlPr3RL7QZ8DtgRvm6mxkkynvIwsoj7Q9rLs9AVWJ+Ab 5bjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Qi3jYM64; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si11946047pgj.244.2018.12.03.02.58.17; Mon, 03 Dec 2018 02:58:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Qi3jYM64; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726326AbeLCK6L (ORCPT + 99 others); Mon, 3 Dec 2018 05:58:11 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:42811 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbeLCK6K (ORCPT ); Mon, 3 Dec 2018 05:58:10 -0500 Received: by mail-io1-f68.google.com with SMTP id x6so10047611ioa.9 for ; Mon, 03 Dec 2018 02:57:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pzAGF8bpBTlswVikN04sR7r5QMuSxZbyY4gYAUT/Sqg=; b=Qi3jYM649xZkGS/pPyGuN/2ni2QlUkB1ev8K3vVDaUJsGAYSbc0aq7nARgdCdnnKHa 2LJB3h0peFsQasJwjP1E41ICMZF9/q0ahqisaq68jXkEWxnNVBHMAWfnC+Ug18icd7AO zM8zxGDgEkNJgRSDBsGcRltLMbMoWXGzaUA1BXi53/LWDXWDF1ctnoO/oxcbaROP+d8U tvH+yNGQRCQkt6lcQfhsMHN5i8EH5ijQu9PixBzJVLcpkiQ+uj5ch3EN6KonoZFH5NOl HzZYld+IvI4vbYlELcvv3qrZkZEM/llJrWUwMqk4BtfAmNYzF/PpLUJDgjYszppMbwFM SC5Q== 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:content-transfer-encoding; bh=pzAGF8bpBTlswVikN04sR7r5QMuSxZbyY4gYAUT/Sqg=; b=Qfl3GfAXvD9ikoPEONIL1RNWzc/3OdXT5dOa3u3n9uSZ1z8UBMVnTTVyz19Qp+pxQ5 iFgccwNpt5bBc1p0xH/nrUyrTmcQ3xsuv3VeJTNVFv3Z6tcrRB8+n5ZbHMiIe0fyIYgd 83CHLVEmxt5yw87DfuekdSKuxAtNVFk8xuMyXP1PYfYI6BVyDsLtOLw675dsN4KgJkwr St+4a2oG+IFpPyWolKDIG3GEqkDo4FwiBcqMTKw16XsEhERH68RQYSFdFQcahC9hxDSd GEb7COEZ0zaqBeHEWLgwbN0461iL1/VGkH/ZR2uH15sE0iXWpgy8X59bWQYW0hn7N+eD JPyA== X-Gm-Message-State: AA+aEWYpABGO4fZ6PLaqVTobGvBzeXteiVC3adod0ps81IYn5V2LTWBg rA7Jl8rca3CfjgLyM/xKnBcsO49CYncuGvVJIdOTbQ== X-Received: by 2002:a5d:8c89:: with SMTP id g9mr14211533ion.111.1543834657297; Mon, 03 Dec 2018 02:57:37 -0800 (PST) MIME-Version: 1.0 References: <20181120134032.31645-2-brgl@bgdev.pl> <20181120171742.gkwb4s4qbcqvnefj@pengutronix.de> <20181121191509.ia2vcklvx4q2rh56@pengutronix.de> <20181125211854.idnqxz4pco3r7ydr@pengutronix.de> <20181202215613.jcfrxwl4taiqgsql@pengutronix.de> <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> In-Reply-To: <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> From: Bartosz Golaszewski Date: Mon, 3 Dec 2018 11:57:26 +0100 Message-ID: Subject: Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge() To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Thomas Gleixner , Linus Walleij , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 3 gru 2018 o 11:49 Uwe Kleine-K=C3=B6nig napisa=C5=82(a): > > On Mon, Dec 03, 2018 at 11:23:38AM +0100, Bartosz Golaszewski wrote: > > niedz., 2 gru 2018 o 23:20 Bartosz Golaszewski napisa= =C5=82(a): > > > > > > niedz., 2 gru 2018 o 22:56 Uwe Kleine-K=C3=B6nig > > > napisa=C5=82(a): > > > > > > > > Hello, > > > > > > > > On Thu, Nov 29, 2018 at 07:14:45PM +0100, Bartosz Golaszewski wrote= : > > > > > We're getting too much into details of how to handle simulated > > > > > interrupts and we can continue discussing it, but meanwhile I'd l= ike > > > > > to address a different thing: > > > > > > > > > > Thomas, Linus: after commit fa38869b0161 ("gpiolib: Don't support= irq > > > > > sharing for userspace") some libgpiod tests are failing because w= e can > > > > > no longer depend on reading the value of a dummy GPIO after detec= ting > > > > > an interrupt to know the edge of the interrupt. While these inter= rupts > > > > > are triggered from debugfs and debugfs is not required to maintai= n > > > > > compatibility, I thing having a working test suite for the GPIO > > > > > subsystem and uAPI is worth applying these two patches and also t= he > > > > > previous one[1]. > > > > > > > > > > Can we have them applied for 4.20 or are there any objections? > > > > > > > > Just for the record: I objected the patch, Bartosz agrees to discus= s > > > > further and but because this is too much detail the patch should no= w be > > > > applied anyhow to fix the test suite of an external project. This s= eems > > > > wrong to me. > > > > > > > > > > Just to look at it from a different perspective: we have a project > > > whose tests rely on a behavior that was changed by Uwe's patch. While > > > the patch is fine, we need to find a correct way of testing the GPIO > > > user API. This may take a long time. In order to not break the tests > > > of an external project in 4.20 I propose to patch the interrupt > > > simulator (a component only used for testing) for now and to revisit > > > it later without time pressure. > > > > > > Best regards, > > > Bartosz > > > > In fact after re-reading this conversation I'm still not sure what > > your objection is exactly. You're proposing a solution that may well > > be nicely engineered but it's specific to your gpio-simulator. > > Meanwhile I'm trying to provide a more generalized API for more > > testing modules to use. > > I think you're generalizing something that won't find any user apart > from your mockup driver. So I'd say the generalisation is wrong and the > added code could better live in the mockup driver directly. > It used to live in the gpio-mockup driver and I generalized it precisely because there was another driver - iio evgen - which was doing basically the same thing. While I don't know if there'll be more users (I'd guess it would be useful for testing purposes of other subsystems) having the same functionality implemented once is better than twice. Bart