Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9465186imu; Wed, 5 Dec 2018 05:21:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJJqwY0w4/lhG/0pe7vQrjh7CY6RXsigLmBLpASAEWJdLkYv3FKyjPwphftEBMnr3hTFJQ X-Received: by 2002:a62:13c3:: with SMTP id 64mr24238759pft.93.1544016063106; Wed, 05 Dec 2018 05:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544016063; cv=none; d=google.com; s=arc-20160816; b=olaglHZzNKqM771Rj/4J7tDWX1PoI95TzAsIlufMv8HpSuggCr94+Y8t6rxfhBpnmq HKFS+K5eTfmkgUDe5oeeDdvTI4mlImGPdiQWWa3UxwNC4TN/bTE5xKGQVjMiPkpUX1HX Id+fsBVnEfBUbGgrQwP8JiB31hoa+PJkl6HkOoUp9WK2KLyQQymK8wvQaFGxDaDynmHK APu8BtvjPK2Z+oGKU+69s0aRyAm2Zpa0QR/qxKu2epLW/mEM2BLy5c1J63IC6Qtv1yYS wpPeJqDDpV/8oZIp7zCOUa/IfXuNnVvjMX5vcq9PV8X6VfH1PCSogdWqCV/9NyB8UCiP QT1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IBRs2v0Vt8DuaHkokYdxGV1Q/Kle/XxOmMdx8vfYOe4=; b=oIoWFvO0ap6KU0nvJdXhCwMUYAV/2Y3162c/SQFlIpz+SpeECb38fPGEmpnLXjDyvT Zm652WGpi08s/6vLKTHN0ARpnIYeSKLmOmZHjA0oSIdPetGoDArz3qM+z3Gwf1cdTxod Fu2z8eSWmpjoR393+bY9r2YY24l3oVl1Qd+s+5D1AB8fjKo/ZeKzrXbU9JQAhJiofMpE YA5lSqwXVy41ewpeW/BbTDaw6kgJwtU2dOg3TAzfpV6jdie1utakXP012m75s1T41eJZ 1YJOMmveVMhls0oSjXEMpn0I87r4FH1uhVDrXCvHSkZ+2NTpgS3oe1Hw1N9uJkrkAMVv WKHg== ARC-Authentication-Results: i=1; mx.google.com; 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 x15si18167039pgq.378.2018.12.05.05.20.47; Wed, 05 Dec 2018 05:21:03 -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; 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 S1727337AbeLENUC (ORCPT + 99 others); Wed, 5 Dec 2018 08:20:02 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:50329 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeLENUC (ORCPT ); Wed, 5 Dec 2018 08:20:02 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gUX5s-000849-LQ; Wed, 05 Dec 2018 14:20:00 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gUX5s-0002PM-7j; Wed, 05 Dec 2018 14:20:00 +0100 Date: Wed, 5 Dec 2018 14:20:00 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Linus Walleij Cc: Bartosz Golaszewski , Thomas Gleixner , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski Subject: Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge() Message-ID: <20181205132000.f7n2stv2pxldzcxu@pengutronix.de> References: <20181125211854.idnqxz4pco3r7ydr@pengutronix.de> <20181202215613.jcfrxwl4taiqgsql@pengutronix.de> <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> <20181203110654.53o3prw3qu3u2uyf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 05, 2018 at 01:19:54PM +0100, Linus Walleij wrote: > On Mon, Dec 3, 2018 at 12:06 PM Uwe Kleine-K?nig > wrote: > > On Mon, Dec 03, 2018 at 11:57:26AM +0100, Bartosz Golaszewski wrote: > > > > 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. > > > > The iio testing driver only needs the trigger and relies on an irq that > > then calls the registerd handler. The iio driver doesn't need to tune > > the edge sensitivity though and if your mockup driver just only calls > > the fire routine if the configured sensitivity justifies that, > > everything should work as expected. > > Simulating edges in the generic IRQ simulator codes seems > generally useful to me, even if there is just one user now. I cannot imagine another potential user. Which kind of driver could use that that is not a gpio simulator? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |