Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9402023imu; Wed, 5 Dec 2018 04:21:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/UvstIwBccAfcd6TALAmw5bXu62jOcaKnRefqmJem5dw6RdQ0eis4V3r/BmIqjtfo7hzHZp X-Received: by 2002:a62:6f88:: with SMTP id k130mr23917054pfc.234.1544012466084; Wed, 05 Dec 2018 04:21:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544012466; cv=none; d=google.com; s=arc-20160816; b=w68jWwXDmE2LSTtRVKnFZNPbVpqlwJwJkGefvSo4Ghi+sgfbTnYUybEEJSXLe/JqBH wdHZyJXFI8DWw6loB2A7uagoXcJ1F2t1gXGPFc1ZTixSToNnOZhhCaHjqpd0G9O43+2v oYDpmTScprl6PDkaF0gE2zRIuXFWflTyOopn7ZPJ9grDgl+F7Kq7BbW0JqHzG3dHYwwV usYDYdfbyyuG2UmV0XOGo8O4+3o59USGzkZXbGSZRn+5zxOg9OgKOMg665DmmaKtzgCu Nf3Mndqy6519zofM3vj2ybOCEb0xP/J9hkSu4qADF02IhRcYRIeGEVzRwcaAGn4AFkC5 WPZg== 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=ylCZA5F9X8yIgHAk7WqnJ+3fsfxROm6NPDkBwyXHatY=; b=Co/AUcGpYJecnSpgB+8SuB0b5DUOndNyvJRg70Mclu+Zlojdn3YVcK4I8jn0KPq1SF nAdvX5Rke9XweAmWp1M2+S+IHlVTN5oX7oa6JHbh1nUkzHwXIjotcuMj07oKyLOZbOqk tYBUuPeIutDcrP56nLoxRKIKoyFPfm+tSmTphgbq/acdGvilozT0+mkkkuIBDr13O0tn VHAIHJoyJhWh9c9cGrZOSHdDx+q1V/nTQznjyv7Ep1Wo1KnRfx9clHAwOlLdm8ljlrSd sKPQE58M5t5x6PkXaRmN9V/FWlpcFpMpKrKEZeAz/AlkIHRjiHj41lM8N0qFtzxFwGDP IfTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U0Se9BVL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x15si18052114pgq.378.2018.12.05.04.20.51; Wed, 05 Dec 2018 04:21:06 -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=@linaro.org header.s=google header.b=U0Se9BVL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbeLEMUJ (ORCPT + 99 others); Wed, 5 Dec 2018 07:20:09 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:42526 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbeLEMUJ (ORCPT ); Wed, 5 Dec 2018 07:20:09 -0500 Received: by mail-lj1-f194.google.com with SMTP id l15-v6so18119260lja.9 for ; Wed, 05 Dec 2018 04:20:08 -0800 (PST) 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:content-transfer-encoding; bh=ylCZA5F9X8yIgHAk7WqnJ+3fsfxROm6NPDkBwyXHatY=; b=U0Se9BVLotgirsafeyt6bFhUvXu00VvjC6b2ONzCJU1WJs0VnFbbiAGfr05BHisAwr O09ru7jSVNdYnFhY6+1rYumWXz++aAsh45DhwkXSLLpP2Tb2zpaDHbZoioW8jYvC0fF5 3OKaQKO4jtNMyqzLjH8ccBmcQADt4IEcZFbfw= 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=ylCZA5F9X8yIgHAk7WqnJ+3fsfxROm6NPDkBwyXHatY=; b=jHCA+/QEvnf9RY4Td6Ru2sS7EUR0YXQMl/iPKp9HTzcmDDWmb/tna0YGHSS5irXUYr ESDZvRFD049lN5LXi9J328s+hmbwvfZ60V8VNwv1vWw1a/+EgSG5FySvKP3TiWbA3CUg 50LKkAvzy2AeCqnUyvWr5ARnTDWYv5Qctgq25SGGtaRCbfaja8FZriYLDxZicWt9JZ8u +TIZ7a6sxb1Wu4mKlm1rb7egYB4ka+CQzPwN2zTv5LiLNDNbsCc5On7c/az9fTN7ad01 uLP1eQ396YOIeP9iL6gO0oFPd+UM+DgQ1gMfewnW1TMRPaYFpNBFXxSuc+/Kk6EQ3S4U R56A== X-Gm-Message-State: AA+aEWYif84qyyNZeEm7zNa06OvIKeuyOyAP0WXMZWoWJUUdeN3peeZO G/hq4gUig+lbtQg7KZr9Y5asmNfOFH0eY1k6kxgpgA== X-Received: by 2002:a2e:29d7:: with SMTP id p84-v6mr15361354ljp.12.1544012407167; Wed, 05 Dec 2018 04:20:07 -0800 (PST) MIME-Version: 1.0 References: <20181121191509.ia2vcklvx4q2rh56@pengutronix.de> <20181125211854.idnqxz4pco3r7ydr@pengutronix.de> <20181202215613.jcfrxwl4taiqgsql@pengutronix.de> <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> <20181203110654.53o3prw3qu3u2uyf@pengutronix.de> In-Reply-To: <20181203110654.53o3prw3qu3u2uyf@pengutronix.de> From: Linus Walleij Date: Wed, 5 Dec 2018 13:19:54 +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: Bartosz Golaszewski , Thomas Gleixner , "linux-kernel@vger.kernel.org" , "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 On Mon, Dec 3, 2018 at 12:06 PM Uwe Kleine-K=C3=B6nig 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. Certainly for any kind of IRQ testing, it could be interesting to throw several low-to-high and high-to-low transitions on a driver and see how it reacts. But it is up to the irqchip maintainers to state whether they agree. Yours, Linus Walleij