Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2667372ybk; Tue, 12 May 2020 05:18:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeJvlNDVwddj9uas184t+3uEmkkiUVbfiVVYcpI4KxKpBQrBFelV9OXmOh6xzXU3oMnivt X-Received: by 2002:aa7:dd12:: with SMTP id i18mr1396676edv.133.1589285935199; Tue, 12 May 2020 05:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589285935; cv=none; d=google.com; s=arc-20160816; b=K8sf/WsOrFaPX3bxfqVEn4qTvxMyS1ZVv/i2PJkcaJK8ck2D3hzJhwlmWCORqyc03K TuXfEBkUx+wdlBv98N5kfY+6l2BP+IBgK5d42mEwCFKqQwJUwRfg15iKsqWRoWtuwqJT qdCDf41bMejhzPzCz0hL2qBi9OnmBrtMgFLiI/6GOdqCyJIRSc6NyQMG7cBp1Wy9YL1O ZokNXwl9UxXX2x2hCKwxCK+xFpgwrFvBDZmJYp4BeQ/wHp/K9uqhogBgXIEfQPD2nzeU 8EY6AnV3U8UPtyRHHvJY/CCBL8hr1B/BvFEIpUMpVzPzB/MIrlH65BPHGeF/5YvnOnyh Q/GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AHRgMLmA3AvBWPfR6NKWwxmRE4rkD36q1pi3BiamBuk=; b=GiYtWBAaTaiy9ob5fSXLLmh/ahk6motVnf+rPbcnOXBjd168s4wF1BbCUgRVTua109 645jICEEVGNSxc7VzoR0JPaLbqoqPyc3yOtWUj+R2vpi2j6ZthbfGMIcDjgd0nuBpUx4 +BDbBfzpfUPw7p7YpYBQ7C4Z4lERaIDqXvMZnni7NJWN6OOOEuR+cCQ7oWf7azlY/OqN 9Q1QMVnudlXHCbKHzUVGOcgCAKeIljZqLpgDLo8JI1LuunGW1vo+ZjNu/iw35R0P/dec 3ACXI9uVGGcwNRSCXiKgw5ihs+NXRkdK8TX+0+Dxwl0OrmMmeswWl2bFLPzAe812DMxK uwLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zawdNdom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w6si7663847edf.40.2020.05.12.05.18.31; Tue, 12 May 2020 05:18:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zawdNdom; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729569AbgELMRH (ORCPT + 99 others); Tue, 12 May 2020 08:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726891AbgELMRH (ORCPT ); Tue, 12 May 2020 08:17:07 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FDCAC061A0C for ; Tue, 12 May 2020 05:17:06 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id u4so10359542lfm.7 for ; Tue, 12 May 2020 05:17:06 -0700 (PDT) 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; bh=AHRgMLmA3AvBWPfR6NKWwxmRE4rkD36q1pi3BiamBuk=; b=zawdNdom/gNdPx47D4yLAoF6P7G0lSQgL3HWoaTE5pIWlvLTLXvSgmJEAGLFAG5VGb /G7eaYc6og9aU4x4M7FTxm81UsoCa/45aiA5gY4tGQ2nVbaTMFmxcXsBl/dejya1fspB vuywN7waQfGB/WfPQNp9AS0c8Tc7UP5ZRUi0fdRxxFlktSSVW9rccOOp2fxxlHUfQf5D nEBX/9KNhiLH7lvfPT1ZjdrrfBc5k88EY57RUm+E8RKZ36irVE8C+CnyzGAJd56EWpX/ jE8zVu3h1jj2JT28gOJMBYBIh8b5mcGCW6IcPVx93BDudEuaAtSIbnMBWyTet65NItej Gh0w== 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; bh=AHRgMLmA3AvBWPfR6NKWwxmRE4rkD36q1pi3BiamBuk=; b=LUuOb4FBibvhFK29jU8Znj1qdkAxxUaAx7ExrN+ZH0cNzn3lITGsYa0BMhSiKgkJDw dvEmgQTD4kwF1aGATgWdo4hLQJxR/m8U7oqMksslr3Bam9+8dJZxhKqILLeJrM1d2bK3 lfG91rD0k7WKa1nnrDUYS05fpWMwIOP5g90aI+lL4BvG3Y9g+LLTBhf6f40Hu/mDixO2 y1x4EFelM6dpsnVaWp/JgkojOCAM7V1PzxkP3YDi3TKGkx7FKZ8dFb7f8f0IiWJsX3pT 3/k6JQwoICvA8VpG7V0xuSKVFlzvfuddOQNbjZH1lDnKi9s9fGZSY9rp4KKbXJx61ECu AEyQ== X-Gm-Message-State: AOAM532dJajQ8peyhUTwVu+aGnFbfTD/awe6smianHCjPRPHcpP7vlXl Rs7ebmD//RlHBKv9jdD5ZVY2euyNoETx3ZkMV4Bdxw== X-Received: by 2002:ac2:5588:: with SMTP id v8mr14010972lfg.217.1589285820682; Tue, 12 May 2020 05:17:00 -0700 (PDT) MIME-Version: 1.0 References: <20200430143019.1704-1-brgl@bgdev.pl> <20200430143019.1704-3-brgl@bgdev.pl> In-Reply-To: <20200430143019.1704-3-brgl@bgdev.pl> From: Linus Walleij Date: Tue, 12 May 2020 14:16:49 +0200 Message-ID: Subject: Re: [PATCH v4 2/2] irq/irq_sim: simplify the API To: Bartosz Golaszewski Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Thomas Gleixner , Jason Cooper , Marc Zyngier , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , linux-iio , Bartosz Golaszewski , Jonathan Cameron Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 4:30 PM Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The interrupt simulator API exposes a lot of custom data structures and > functions and doesn't reuse the interfaces already exposed by the irq > subsystem. This patch tries to address it. > > We hide all the simulator-related data structures from users and instead > rely on the well-known irq domain. When creating the interrupt simulator > the user receives a pointer to a newly created irq_domain and can use it > to create mappings for simulated interrupts. > > It is also possible to pass a handle to fwnode when creating the simulator > domain and retrieve it using irq_find_matching_fwnode(). > > The irq_sim_fire() function now only takes the virtual interrupt number > as argument - there's no need anymore to pass it any data structure linked > to the simulator. > > We modify the two modules that use the simulator at the same time as > adding these changes in order to reduce the intermediate bloat that would > result when trying to migrate the drivers in separate patches. > > Signed-off-by: Bartosz Golaszewski > Acked-by: Jonathan Cameron #for IIO Acked-by: Linus Walleij Yours, Linus Walleij