Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2489851imu; Mon, 17 Dec 2018 02:54:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/WTt4hHOuopaY2qlbqm0rzVqY+YyYTadlbiYWehleMRTLrGNRXjYmYcioOoA3Cdqc6TRIlF X-Received: by 2002:a17:902:e085:: with SMTP id cb5mr12138220plb.24.1545044085408; Mon, 17 Dec 2018 02:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545044085; cv=none; d=google.com; s=arc-20160816; b=Qxtt5I2PhhPzm0BCxL/IHKgB3wISGiqlncb8U7vux9fK7tmMxuSquzEIT0pKkvS0h3 zqYWaaFoMOwRQzSZfXHe5/WjltKcowpcJdFNEjFqz+MGvlonutg2pLgl7nV6u9Q0mPXr dbYUcFfg3/KYHFof3Zm1A/yl5Rz1HXMZ2kOxFbKFC4+wQrsMpE/e3KtXVk2wEfntyuLh hpIDkGuvy2L6Lw6EhH2OkO6MHhD9kTLUF4I9OpJCtYI3FxFw/alLKqve8hICNkLX0yWo C8Q+N0RzsMKCVqWMw9PbttaR+d/9sB2ahzzWlRR2nGiteQ2vxek0vjzw2kWiIla/jnu7 qz6Q== 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=M/hrvpMWylKMYAtzA9GzD07lIiZgy8DdC6TOmQXU8pU=; b=dJsT34K6tEk8X5THFYYuy4qaiLZ0FQF2amLFUx3RMqYAJcDprrIX2BlSKHg0gHdRFt CjO6oVSHppYVY4ztwm1HD2UvQAtgm2i9pgaBjwDobhXWqhBP86WmVz7GTVdajDUQiTaq GveLKGCM6tAk3n4nfWbgUjo/EdymvGhONi7D6gp2/RkM50rpA8xIQtaO2NY5dZmE2wIc VFWumZ3DdYgbGQrhSEjHnodqzYBNsfNNm9B2P6KUtVQnGDbCFQ7VdJxTDumWqA21ZGPK KZ1OR4tF8TZ/Tg9n6jid4kZM+SmzkY8hs3mV8pQvT2SJzN7JM+wGlzWs+EJdAZT0Pi6Y DHFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=HsAfEsO4; 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 y123si11359139pfy.18.2018.12.17.02.54.30; Mon, 17 Dec 2018 02:54:45 -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=HsAfEsO4; 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 S1732361AbeLQKc6 (ORCPT + 99 others); Mon, 17 Dec 2018 05:32:58 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:32859 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732017AbeLQKc6 (ORCPT ); Mon, 17 Dec 2018 05:32:58 -0500 Received: by mail-it1-f194.google.com with SMTP id m8so5115793itk.0 for ; Mon, 17 Dec 2018 02:32:57 -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=M/hrvpMWylKMYAtzA9GzD07lIiZgy8DdC6TOmQXU8pU=; b=HsAfEsO4q61HVUOynRbtoPfO3uOsBjYiugr8mKjzoq42lTm63FMHtuEwyNI56bnTbA ZGIf/x1BIShIK4L0CbeDbY1VX/MC7Y/iKFUrL1z33TjFTHtkTM5lDZN+k505t1VSivg5 3cCKvPW12G66PtlJUtO8bWvrrLhdeLbiD9mp+WGau8Wo9X8Ww9af5c7FwIu+9cVFjogD mquLF3itFRjHvtCpaSH+uJZmxU2j2cmF2PAZhGva8Zqw395zGot97rd1z5zlXsuDQS2m Aor9A7JaXX/WlijWpkwfTRjbnjxMvYrxT1SVlvpKfXc4SzBjuDbUXQ0kjb9f722auwu2 gLlg== 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=M/hrvpMWylKMYAtzA9GzD07lIiZgy8DdC6TOmQXU8pU=; b=Xp+h6/HD0kqT1O+HlnUmQJsQ0OZgJ1oumEEuRXmBUgN4QF8RTKg0rhkGXhOsjxh4CU /S1QI9Tjt0maQnidP6RJufstICrk/wGFvxE52w3Au9tkzrA59XziiQNeLKDjcGDoLAIG fN667Dp4frTGnj93GEVlbX1CNkAoRro4O1SsFpnVTXahYhtHxyS14DoDuqCauaffl0/t Q49JPipKKqBvfTPN2UT5xUJqOsOeIj3UMhJUqX4AbmAe33yQtB7VVMM/cMOnMyY8kZGq OA7D1x0RAy0W17JQHomrQl2x/o2NRObgbYSDw8kc2I8spqE+33OqV5rpwq4lckPBi3WK lkyA== X-Gm-Message-State: AA+aEWbJrBCEkEq6+XrArx1ksGPhcvdf1EYhiURgiDFApeoq/6xUo9TP LnjvN0AGjwt5u5yNCgCFnR+AQZd05E1xi4/6c6lRZg== X-Received: by 2002:a24:9d1:: with SMTP id 200mr12436190itm.53.1545042776512; Mon, 17 Dec 2018 02:32:56 -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: From: Bartosz Golaszewski Date: Mon, 17 Dec 2018 11:32:45 +0100 Message-ID: Subject: Re: [PATCH 1/2] irq/irq_sim: provide irq_sim_fire_edge() To: Marc Zyngier Cc: Linus Walleij , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Thomas Gleixner , LKML , linux-gpio , 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 =C5=9Br., 5 gru 2018 o 13:38 Bartosz Golaszewski napisa=C5=82(a): > > =C5=9Br., 5 gru 2018 o 13:20 Linus Walleij nap= isa=C5=82(a): > > > > 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 m= ore > > > > users (I'd guess it would be useful for testing purposes of other > > > > subsystems) having the same functionality implemented once is bette= r > > > > than twice. > > > > > > 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. > > > > 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. > > > > All that would be great, but at this point I just want to fix broken > tests in user-space. After that we can think about how to > improve/approach simulating interrupts all we want. > > Marc: is my explanation for using an int instead of bool for > irq_sim_fire_edge() fine? Can Linus pick this up for fixes? > Ping. We have only this week left to fix the regression - can we get your Ack Marc? NOTE: this patch must go into v4.20, and will probably conflict with the bitmap patch you picked up for 4.21. I can take it into my PR for Linus Walleij and then fix the conflict in next. Bart