From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [PATCH 0/3] simulated interrupts Date: Wed, 19 Jul 2017 14:25:15 +0200 (CEST) Message-ID: References: <1500466814-32679-1-git-send-email-brgl@bgdev.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1500466814-32679-1-git-send-email-brgl@bgdev.pl> Sender: linux-doc-owner@vger.kernel.org To: Bartosz Golaszewski Cc: Linus Walleij , Marc Zyngier , Jonathan Corbet , Bamvor Jian Zhang , Jonathan Cameron , Lars-Peter Clausen , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org List-Id: linux-gpio@vger.kernel.org On Wed, 19 Jul 2017, Bartosz Golaszewski wrote: > Some frameworks (e.g. iio, gpiolib) use irq_work to implement simulated > interrupts that can be 'fired' from process context when needed and > requested just like normal interrupts. This is useful for testing and > development purposes. > > Currently this code is reimplemented by every user. This series > proposes to add a new set of functions that can be used by drivers > that want to simulate interrupts without having to duplicate any > boilerplate code. > > The first patch adds a simple irq simulator framework. The second > extends it with resource management. The third uses the new > functionality in the gpio-mockup testing driver. > > NOTE: The next candidate for using this API would be iio-dummy-evgen. I like the general idea - have not looked at the code yet. Just a quick question: How many copies/variants of this scheme do we have in tree? Thanks, tglx