Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2120599imu; Fri, 14 Dec 2018 06:09:59 -0800 (PST) X-Google-Smtp-Source: AFSGD/UToRBhMKXNCsf4LZL4k3wjTGTvhW47EJBOZONvQltKjzZXHj9ZZjwXqxr7oH+OlppRQbim X-Received: by 2002:a65:4646:: with SMTP id k6mr2787999pgr.153.1544796599069; Fri, 14 Dec 2018 06:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544796599; cv=none; d=google.com; s=arc-20160816; b=QoaXXaloLMg0DU9q0KEgR4vRAVBuyGNoxALPMRXzNo28+am68Qj+fxOIaqLsO2Ir27 +dJSFyBMDDjJ68PPhQ6L6ptxIlYQmCvik7D0hU6LmU6Cfvk68D/i3Zw958mGOiGYiQUF /IDwRSddJ31ttHAZHWpL9uI2MtlvCJfO6y2X0/L3I0HxJWp4Qxn0SmCVwQbD+EnqlFv4 BZa9m2665LRypqwuIaXr2OF92rn0IGB0UphSGgX7r++m+v00xGWWfv8Ktum7HRMFEkdP HZTGuYr702cFgntMOIDBnvx0xkuB6QJLi/R0g0npQyWBFUOJPNS8HhbJCotlWrlvDA8r OaRQ== 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=5M6Pv0iTBeLAUiVLw36pC8WZ2QZ8He/+Zt26NeLbuVU=; b=Q1ZywNEaesveLTXZnHeQ0+wiWGFBp2Cz1+J6qL+ulsdrr/pGWLw8J4pEvofG+mLa60 hbrxqRIm9T/TVL3J2SX/3hY1jf+goAha4hCzqY9xV525Xxv2uiYB2PY4kdjwkoNhylJ/ 9mkylMIYeYJx6nRlpzEtW0X9HYf04D2Dkb+GdcIarnkZG+dhtKMA8iG7BahWNXrADVDy ah2ddK1KVNAI/sT2K4olpYm5pBuZze7KGuWMvPIvWSx+Lp6hi7BG+C+fEF0Jhehdiq91 +536Rhxx/txUyw4vSBVgsKgl6bAl2Vm7/aEb2zRlfPglaCG5RiYu0FoC7OswHrrdy0KK uPDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U6GtVnF7; 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 f4si4107188pfc.234.2018.12.14.06.09.24; Fri, 14 Dec 2018 06:09:59 -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=U6GtVnF7; 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 S1730020AbeLNOHx (ORCPT + 99 others); Fri, 14 Dec 2018 09:07:53 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:46123 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729758AbeLNOHx (ORCPT ); Fri, 14 Dec 2018 09:07:53 -0500 Received: by mail-lf1-f65.google.com with SMTP id f23so4315022lfc.13 for ; Fri, 14 Dec 2018 06:07:51 -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=5M6Pv0iTBeLAUiVLw36pC8WZ2QZ8He/+Zt26NeLbuVU=; b=U6GtVnF7eAJVv7khtdSwGSPwtfeOFGb3AmwHeAZRNpUxNAiTA+CPoV+4MkTy96OZCg llfuemrRXTEV9Uilr8+6aeA/v0YryAz/orceT9M9jcuCq79trqIpdPXhAK9W2akbY3md 9FpwYznvqCBPg7o+tBXtYA2vC/yvYZKQMMhaM= 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=5M6Pv0iTBeLAUiVLw36pC8WZ2QZ8He/+Zt26NeLbuVU=; b=Et4agyVa2n0kkS5418RbgJ3EOiaMdl4IGtgCtQ6HvfDcVhq8ksl9xSnJ/5aKhJXeKW POYRfk3NdevfUHsOcEsCdLoh8CIEkm7K/ET5F021s8VlpearAa0u6xcXwui6WIOHol92 uErdyCmCnbouhLR+MySaaP925WjzzkDVP6NV7Yn+qpHKimAASzJQOPauB0CjuapC7TKd jaoofSiNRdrHpaYmpMlA8RZT3OT9CDxO7eYgwl2Ztjs2L7o32wKVzLti+w/baOLwkTbo rXN8wRznnW4RZ/i1s4Dgc6LC+lpPLGj9xvbetipzpv20nKPxZSRKkUkM3rgZGAJUMtMW OtDg== X-Gm-Message-State: AA+aEWam/i1n8W4w7KEC3MLBEJrYVAVy8YytzdxEtEX0b0inZx5PwrtU Y+iFVpjrnYwH2KVSOp6/Nu+7P1P7cnYYpqR8BCxqnA== X-Received: by 2002:a19:5154:: with SMTP id f81mr2025291lfb.96.1544796471115; Fri, 14 Dec 2018 06:07:51 -0800 (PST) MIME-Version: 1.0 References: <20181125211854.idnqxz4pco3r7ydr@pengutronix.de> <20181202215613.jcfrxwl4taiqgsql@pengutronix.de> <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> <20181203110654.53o3prw3qu3u2uyf@pengutronix.de> <20181205132000.f7n2stv2pxldzcxu@pengutronix.de> In-Reply-To: <20181205132000.f7n2stv2pxldzcxu@pengutronix.de> From: Linus Walleij Date: Fri, 14 Dec 2018 15:07:37 +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 Wed, Dec 5, 2018 at 2:20 PM Uwe Kleine-K=C3=B6nig wrote: > On Wed, Dec 05, 2018 at 01:19:54PM +0100, Linus Walleij wrote: > > > The iio testing driver only needs the trigger and relies on an irq th= at > > > 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? I suppose anything that can generate an IRQ and wants to generate some test IRQs where edge matters, drivers/irqchips/? Regmap IRQ drivers/base/regmap/regmap-irq.c does support edges, and regmap already expose all registers it handles in debugfs, so it'd be really neat of you can also use debugfs to insert IRQs from a device using regmap. Yours, Linus Walleij