Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2523515imu; Mon, 17 Dec 2018 03:30:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPE6pon59oYMn4TNOcIZ5BPJHZSpz1GUvKRGDEbMdwN6KCdouqZKi0rDE39sBdBczN8+2H X-Received: by 2002:a17:902:6948:: with SMTP id k8mr12232726plt.2.1545046253928; Mon, 17 Dec 2018 03:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545046253; cv=none; d=google.com; s=arc-20160816; b=VJEIwD2jn1nEQBRAKeDKK8txSIfFiCiBtV7eesBIGM3LUGvUEq5DFQrU/sogQWCFbc DMEYeJOz/7oMws2x0XIt4WXlfpgwLX9QwOiw3hLjXoYRxW3T4WFZ6OSvbIiCJ+sW2eYl agX72u6F88LW0itDI/ZL80rrpkpxO+JqGDvBgOn9gIrLpPWbeWrSBxesQ8dVuZ/Imnoc YI01+68brY4ykTj7AI8dBkUKErKJuB0hveFPxQbClQlpxpgYDMqhm1+rfcMMV0QrhuZZ IPFednizYtpDyiJPKU8BolGYpUZsnm16eamU8va7pL0gd670RkSzEDj1sRb47yoJFc6x /peQ== 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=dWqi87YY/IdUKNkzaXCHN3qcGVE6zuAWNcCp7GKEm0k=; b=mLH0aha0TQzfNETaS3RLvQ/gF0NfzfnUjK3RIeIzW5WddOUg5YcqAljFPYQLYMk47P xs6ZA9JwKXR5xK5puixIImj7B+U1Y/eWhvwISLhZA0dlH3MDty7PqLZZ0psPekRHkD3l oco1fYE/hLwlIBWoqFhq/pw8LUMS8+aDY0eUsCyhzDrNV1ObF8I1BYGi2HPN0iaDC/eY VTfbZaJda1yD9a0XT5k+grl8TyA5G25JALg+WrNk/wwG+VcBS/R9b998EvlJ3wPwURz8 LZlwvhfQh0abhO3IasWbrBa2zIUP4YGVbQt7nYtStgtEvT/0cQ7oA4wi+GqHlJLE/ta4 slEg== 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 w5si10586124pfl.279.2018.12.17.03.30.37; Mon, 17 Dec 2018 03:30:53 -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 S1726985AbeLQLTs (ORCPT + 99 others); Mon, 17 Dec 2018 06:19:48 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:40691 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeLQLTs (ORCPT ); Mon, 17 Dec 2018 06:19:48 -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 1gYqw6-0001Nv-MC; Mon, 17 Dec 2018 12:19:46 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gYqw5-0006YL-VK; Mon, 17 Dec 2018 12:19:45 +0100 Date: Mon, 17 Dec 2018 12:19:45 +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: <20181217111945.sirtdt2a3h34rect@pengutronix.de> References: <20181202215613.jcfrxwl4taiqgsql@pengutronix.de> <20181203104923.gcb2bcsaoczjcjhk@pengutronix.de> <20181203110654.53o3prw3qu3u2uyf@pengutronix.de> <20181205132000.f7n2stv2pxldzcxu@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 Fri, Dec 14, 2018 at 03:07:37PM +0100, Linus Walleij wrote: > On Wed, Dec 5, 2018 at 2:20 PM Uwe Kleine-K?nig > 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 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? > > I suppose anything that can generate an IRQ and wants to generate > some test IRQs where edge matters, drivers/irqchips/? Should the irqchip be the consumer or the provider of the irq? I would have said the provider as it is an irqchip. What would be the gain of such an irq chip as all users could use a (flexible enough) gpio simulator instead? Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |